xml_worker.jsp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@page import="com.udapsoft.waf.system.HandlerStorage"%>
  3. <%@ page import="kr.co.hsnc.common.util.*" %>
  4. <%@ page import="kr.co.hsnc.common.sql.*" %>
  5. <%@ page import="kr.co.hsnc.common.message.WAFMessage" %>
  6. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  7. <%
  8. ctx.init(request, response);
  9. HandlerStorage storage = ctx.getHandlerStorage();
  10. String msg = storage.getMessage();
  11. ValueObject params = storage.getParams();
  12. WAFMessage wafMessage = WAFMessage.getInstance();
  13. %>
  14. <% // 업로드 컴포넌트 처리시에 정보 추가
  15. //pre 태그는 반드시 소문자로 코딩.
  16. if( storage.isMultiPart() ) { %>
  17. <pre>
  18. <UPLOAD>
  19. <UPFILE></UPFILE>
  20. <UPLOADEND>
  21. <DELETEDFILES></DELETEDFILES>
  22. <SERVER_ERROR></SERVER_ERROR>
  23. </UPLOAD>
  24. <% } %>
  25. <RESULT type="<%= ctx.getResultType() %>">
  26. <REQUEST uri="<%= ctx.getRequestURI() %>" event="<%= ctx.getEvent() %>"><![CDATA[<%= params.toString()/*ctx.getParams().toString()*/ %>]]></REQUEST>
  27. <% if( storage.getSuccess() ) { %>
  28. <SUCCESS value="<%=storage.getSuccess()%>"><![CDATA[<%= storage.getMessage() %>]]></SUCCESS>
  29. <% }
  30. else { %>
  31. <SUCCESS value="<%=storage.getSuccess()%>"><![CDATA[<%= storage.getMessage() %>]]></SUCCESS>
  32. <% } %>
  33. <% if( !"".equals(storage.getDetailMessage()) ) { %>
  34. <DETAIL-MESSAGE><![CDATA[<%= storage.getDetailMessage() %>]]></DETAIL-MESSAGE>
  35. <% } %>
  36. <% if( ctx.getResultType().equalsIgnoreCase("SELECT") || ctx.getResultType().equalsIgnoreCase("VALUEOBJECT") ) { %>
  37. <% ValueObject vo = storage.getValueObject(ctx.getResultType()); %>
  38. <%
  39. //System.out.println("--------------->" + vo);
  40. %>
  41. <VALUE-OBJECT size="<%= vo.size() %>">
  42. <% for( int i = 0 ; i < vo.size() ; i++ ) { %>
  43. <VALUE name="<%= vo.getKey(i) %>"><![CDATA[<%= vo.get(i) %>]]></VALUE>
  44. <% } %>
  45. </VALUE-OBJECT>
  46. <% } %>
  47. <% if( ctx.getResultType().equalsIgnoreCase("ROWSET") ) { %>
  48. <% RowSet rowSet = storage.getRowSet("ROWSET"); %>
  49. <% if( rowSet == null )
  50. rowSet = new RowSetImpl(); %>
  51. <ROW-SET cols="<%= rowSet.getColumnSize() %>" rows="<%= rowSet.size() %>">
  52. <% for( int i = 0 ; i < rowSet.size() ; i++ ) { %>
  53. <ROW index="<%= i %>">
  54. <% for( int j = 0 ; j < rowSet.getColumnSize() ; j++ ) { %>
  55. <COLUMN name="<%= rowSet.getColumn(i, j).getName() %>"><![CDATA[<%= rowSet.getRow(i).get(j) %>]]></COLUMN>
  56. <% } %>
  57. </ROW>
  58. <% } %>
  59. </ROW-SET>
  60. <% } %>
  61. </RESULT>
  62. <% // 업로드 컴포넌트 처리시에 정보 추가
  63. if( storage.isMultiPart() ) { %>
  64. </pre>
  65. <% } %>