<%@ page contentType="text/html; charset=euc-kr" %>
<jsp:directive.page import="java.util.List"/>
<jsp:directive.page import="org.kldp.ebmsh.moniter.failHandler.EngineFailMessageProcessResult"/>
<jsp:directive.page import="org.kldp.ebmsh.moniter.failHandler.BiFailMessageProcessResult"/>

<table width="100%" border="0" cellpadding="0" cellspacing="1"
	bgcolor="#CDDCED">
	<tr>
		<td
			style="PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;"
			bgcolor="#FFFFFF">
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="15">
						<img src="<%=request.getContextPath()%>/image/search/icon_arrow.gif" width="11" height="11">
					</td>
					<td>
						<span class="style2">비지니스 로직 메시지 처리 결과</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<br>
<table width="100%" height="39" border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td background="sub/search_bg.gif"
			style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px;">
			메시지 재처리가 완료 되었습니다.
		</td>
	</tr>
</table>

<%
	List<BiFailMessageProcessResult> failMessageProcessResultList = (List<BiFailMessageProcessResult>)session.getAttribute("biFailMessageProcessResultList");
	
	for(int i = 0; i < failMessageProcessResultList.size(); i++) {
		BiFailMessageProcessResult failMessageProcessResult = failMessageProcessResultList.get(i);
%>
<table width="100%" border="0" cellpadding="0" cellspacing="1"
	bgcolor="#CDDCED">
	<tr>
		<td
			style="PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;"
			bgcolor="#FFFFFF">
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td>
						<span class="style2"><%= failMessageProcessResult.getMessageId() %>: <%= failMessageProcessResult.getMessage() %></span>
					</td>
				</tr>
<%
	if( !failMessageProcessResult.isSuccess() ) {
%>				<tr>
					<td>
						<pre><%= failMessageProcessResult.getDetailMessage() %></pre>
					</td>
				</tr>
<%
	}
%>				
			</table>
		</td>
	</tr>
</table>
<br>
<%
	}
	
	session.removeAttribute("biFailMessageProcessResultList");
%>
