<%@ page contentType="text/html; charset=euc-kr" %>

<jsp:directive.page import="org.kldp.ebmsh.moniter.persistant.EbmsMoniterManager"/>
<jsp:directive.page import="org.kldp.ebmsh.moniter.persistant.DocumentIdInfo"/>
<% 
	String action = request.getParameter("action");
	
	EbmsMoniterManager manager = new EbmsMoniterManager();
	
	DocumentIdInfo documentIdInfo = manager.getDocumentIdInfoByAction(action);
%>

<div id="DocumentIdInfoModify">
	<fieldset>
		<legend>DocumentId 정보 수정</legend>

		<form action="<%= request.getContextPath() %>/moniter/environment/documentIdInfoModifyProcess.jsp" method="post">
			<p>
				<label for="action">Action </label>:
				<input type="text" id="action" name="action" value="<%= documentIdInfo.getAction() %>"/> 
			</p>

			<p>
				<label for="payloadIndex">첨부문서 위치 </label>:
				<input type="text" id="payloadIndex" name="payloadIndex" value="<%= documentIdInfo.getPayloadIndex() %>"/>
			</p>
			
			<p>
				<label for="xPath">XPath </label>:
				<input type="text" id="xPath" name="xPath" value="<%= documentIdInfo.getXPath() %>" size="40" maxlength="255" required="required"/>
			</p>

			<p>
				<input type="submit" value="수 정" />
			</p>
		</form>
	</fieldset>
</div>