File: html-multibox.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 (135 lines) | stat: -rw-r--r-- 4,840 bytes parent folder | download | duplicates (6)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html>
  <head>
    <title>Test html:multibox Tag</title>
  </head>
  <body>
    <div align="center">
      <h1>Test struts-html Property Setters</h1>
    </div>
    <p>Whatever changes you make to properties should be reflected when the page is redisplayed. When first started, all of the listed checkboxes should be clear (not selected). Press "Save" to update, or "Cancel" to return to the main menu.</p>
    <html:form action="/html-multibox-submit">
      <table border="0" width="100%">
        <tr>
          <th align="center" colspan="4">String Array Values</th>
        </tr>
        <tr>
          <th align="right">String 0</th>
          <td align="left">
            <html:multibox property="stringMultibox">String 0</html:multibox>
          </td>
          <th align="right">(nested) String 0</th>
          <td align="left">
            <html:multibox property="nested.stringMultibox" value="String 0" />
          </td>
        </tr>
        <tr>
          <th align="right">String 1</th>
          <td align="left">
            <html:multibox property="stringMultibox">String 1</html:multibox>
          </td>
          <th align="right">(nested) String 1</th>
          <td align="left">
            <html:multibox property="nested.stringMultibox" value="String 1" />
          </td>
        </tr>
        <tr>
          <th align="right">String 2</th>
          <td align="left">
            <html:multibox property="stringMultibox">String 2</html:multibox>
          </td>
          <th align="right">(nested) String 2</th>
          <td align="left">
            <html:multibox property="nested.stringMultibox" value="String 2" />
          </td>
        </tr>
        <tr>
          <th align="right">String 3</th>
          <td align="left">
            <html:multibox property="stringMultibox">String 3</html:multibox>
          </td>
          <th align="right">(nested) String 3</th>
          <td align="left">
            <html:multibox property="nested.stringMultibox" value="String 3" />
          </td>
        </tr>
        <tr>
          <th align="right">String 4</th>
          <td align="left">
            <html:multibox property="stringMultibox">String 4</html:multibox>
          </td>
          <th align="right">(nested) String 4</th>
          <td align="left">
            <html:multibox property="nested.stringMultibox" value="String 4" />
          </td>
        </tr>
        <tr>
          <th align="center" colspan="4">Integer Array Values</th>
        </tr>
        <tr>
          <th align="right">0</th>
          <td align="left">
            <html:multibox property="intMultibox" value="0" />
          </td>
          <th align="right">(nested) 0</th>
          <td align="left">
            <html:multibox property="nested.intMultibox">0</html:multibox>
          </td>
        </tr>
        <tr>
          <th align="right">10</th>
          <td align="left">
            <html:multibox property="intMultibox" value="10" />
          </td>
          <th align="right">(nested) 10</th>
          <td align="left">
            <html:multibox property="nested.intMultibox">10</html:multibox>
          </td>
        </tr>
        <tr>
          <th align="right">20</th>
          <td align="left">
            <html:multibox property="intMultibox" value="20" />
          </td>
          <th align="right">(nested) 20</th>
          <td align="left">
            <html:multibox property="nested.intMultibox">20</html:multibox>
          </td>
        </tr>
        <tr>
          <th align="right">30</th>
          <td align="left">
            <html:multibox property="intMultibox" value="30" />
          </td>
          <th align="right">(nested) 30</th>
          <td align="left">
            <html:multibox property="nested.intMultibox">30</html:multibox>
          </td>
        </tr>
        <tr>
          <th align="right">40</th>
          <td align="left">
            <html:multibox property="intMultibox" value="40" />
          </td>
          <th align="right">(nested) 40</th>
          <td align="left">
            <html:multibox property="nested.intMultibox">40</html:multibox>
          </td>
        </tr>
        <tr>
          <td>&#160;</td>
          <td align="right">
            <html:submit>Save</html:submit>
          </td>
          <td align="left">
            <html:reset>Reset</html:reset>
            <html:cancel>Cancel</html:cancel>
          </td>
          <td>&#160;</td>
        </tr>
      </table>
    </html:form>
  </body>
</html:html>