/jcg-andygene-web-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/views/jms/jms.jspx

http://jcg-andygene-web.googlecode.com/ · Unknown · 44 lines · 35 code · 9 blank · 0 comment · 0 complexity · 45ff0946b36fd6e7e14f154ee5fd0905 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <div id="body" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" version="2.0" dojoType="dijit.layout.ContentPane" region="center" splitter="true">
  3. <jsp:directive.page contentType="text/html;charset=UTF-8" />
  4. <jsp:output omit-xml-declaration="yes" />
  5. <div id="jmsformbody" dojoType="dijit.form.Form" region="center" splitter="false" style="text-align: center;position: absolute;top: 100px;left: 100px;width:200px;height:200px">
  6. <p><spring:message code="jms_message" /></p>
  7. <c:set var="jmsSelected" value="true" scope="page"></c:set>
  8. <spring:url value="/web/jms/" var="form_url" />
  9. <form:form name="f" action="${fn:escapeXml(form_url)}" method="POST" modelAttribute="jmsUtil" >
  10. <table>
  11. <tr><td>
  12. <strong><spring:message code="jms_message_message" /></strong>
  13. </td>
  14. <td>
  15. <form:input path="message" />
  16. <script type="text/javascript">
  17. Spring.addDecoration(new Spring.ElementDecoration({
  18. elementId : "message",
  19. widgetType : "dijit.form.ValidationTextBox",
  20. widgetAttrs : {
  21. promptMessage: "Enter Message",
  22. required : true}}));
  23. </script>
  24. <form:input path="reply" value="" type="hidden"/>
  25. </td><td><form:errors path="message" class="errors"/></td>
  26. </tr>
  27. </table>
  28. <input dojoType="dijit.form.Button" id="proceed" type="submit" value="submit" label="Submit"/>
  29. <input dojoType="dijit.form.Button" id="reset" type="reset" value="reset" label="Reset"/>
  30. </form:form>
  31. <c:if test="${not empty jmsUtil.reply}">
  32. <c:out value="${jmsUtil.reply }"></c:out>
  33. </c:if>
  34. </div>
  35. </div>