File: eventDispatcher.jsp

package info (click to toggle)
libstruts1.2-java 1.2.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 47,516 kB
  • ctags: 29,430
  • sloc: xml: 90,344; java: 71,078; jsp: 31,692; makefile: 10; sh: 2
file content (78 lines) | stat: -rw-r--r-- 3,332 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<%@ page contentType="text/html;charset=UTF-8" language="java" %><%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %><%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %><%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %><%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<html:html>
  <head>
    <title><bean:message key="eventDispatcher.title" /></title>
    <html:base />
  </head>
  <body bgcolor="white">

    <p>
       <html:link forward="module-root"><bean:message key="index.home"/></html:link>
       &nbsp;
       <html:link forward="module-dispatch"><bean:message key="index.title"/></html:link>
    </p>

    <hr />
    <p>
       <strong>Change Language | Changez Le Langage:</strong>
       &nbsp;
       <html:link action="/eventDispatcherLocale?language=en">English | Anglais</html:link>
       &nbsp;
       <html:link action="/eventDispatcherLocale?language=fr">French | Francais</html:link>
    </p>

    <hr />

  <h3><bean:message key="eventDispatcher.title" /></h3>

    <logic:messagesPresent>
      <html:messages id="msg">
          <p><strong><font color="red"><bean:write name="msg" /></font></strong></p>
      </html:messages>
    </logic:messagesPresent>

    <logic:messagesPresent message="true">
      <html:messages message="true" id="msg">
          <p><strong><bean:write name="msg" /></strong></p>
      </html:messages>
    </logic:messagesPresent>

    <logic:messagesNotPresent message="true">
      <logic:messagesNotPresent>
          <p>&nbsp;</p>
      </logic:messagesNotPresent>
    </logic:messagesNotPresent>

       <p>
          <html:form action="eventDispatcher-default" style="display:inline">
              <html:submit property="doFoo"><bean:message key="button.foo.label" /></html:submit>
          </html:form>
              &nbsp;
          <html:form action="eventDispatcher-default" style="display:inline">
              <input type="hidden" name="actionDispatcherMethod" value="doBar" />
              <html:submit property="bar"><bean:message key="button.bar.label" /></html:submit>
          </html:form>
              &nbsp;
          <html:form action="eventDispatcher-default" style="display:inline">
              <html:submit><bean:message key="button.default.label" /></html:submit>
          </html:form>
              &nbsp;
          <html:form action="eventDispatcher-submit" style="display:inline">
              <html:submit><bean:message key="button.invalid.label" /></html:submit>
          </html:form>
              &nbsp;
          <html:form action="eventDispatcher-error" style="display:inline">
              <html:submit property="methodmissing"><bean:message key="method.invalid.label" /></html:submit>
          </html:form>
              &nbsp;
          <html:form action="eventDispatcher-error" style="display:inline">
              <html:submit property="execute"><bean:message key="method.execute.label" /></html:submit>
          </html:form>
              &nbsp;
          <html:form action="eventDispatcher-noparam" style="display:inline">
              <html:submit><bean:message key="parameter.missing.label" /></html:submit>
          </html:form>
       </p>

  </body>
</html:html>