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 struts-html Property Setters</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. Press "Save" to update, or "Cancel" to return to the main menu.</p>
<html:form action="/html-setters-submit">
<table border="0" width="100%">
<tr>
<th align="center" colspan="4">Scalar Properties</th>
</tr>
<tr>
<th align="right">booleanProperty</th>
<td align="left">
<html:checkbox property="booleanProperty" />
</td>
<th align="right">nested.booleanProperty</th>
<td align="left">
<html:checkbox property="nested.booleanProperty" />
</td>
</tr>
<tr>
<th align="right">doubleProperty</th>
<td align="left">
<html:text property="doubleProperty" size="32" />
</td>
<th align="right">nested.doubleProperty</th>
<td align="left">
<html:text property="nested.doubleProperty" size="32" />
</td>
</tr>
<tr>
<th align="right">floatProperty</th>
<td align="left">
<html:text property="floatProperty" size="32" />
</td>
<th align="right">nested.floatProperty</th>
<td align="left">
<html:text property="nested.floatProperty" size="32" />
</td>
</tr>
<tr>
<th align="right">intProperty</th>
<td align="left">
<html:text property="intProperty" size="32" />
</td>
<th align="right">nested.intProperty</th>
<td align="left">
<html:text property="nested.intProperty" size="32" />
</td>
</tr>
<tr>
<th align="right">longProperty</th>
<td align="left">
<html:text property="longProperty" size="32" />
</td>
<th align="right">nested.longProperty</th>
<td align="left">
<html:text property="nested.longProperty" size="32" />
</td>
</tr>
<tr>
<th align="right">stringProperty</th>
<td align="left">
<html:text property="stringProperty" size="32" />
</td>
<th align="right">nested.stringProperty</th>
<td align="left">
<html:text property="nested.stringProperty" size="32" />
</td>
</tr>
<tr>
<th align="center" colspan="4">Indexed Properties</th>
</tr>
<tr>
<th align="right">intIndexed[0]</th>
<td align="left">
<html:text property="intIndexed[0]" size="32" />
</td>
<th align="right">nested.intIndexed[0]</th>
<td align="left">
<html:text property="nested.intIndexed[0]" size="32" />
</td>
</tr>
<tr>
<th align="right">intIndexed[1]</th>
<td align="left">
<html:text property="intIndexed[1]" size="32" />
</td>
<th align="right">nested.intIndexed[1]</th>
<td align="left">
<html:text property="nested.intIndexed[1]" size="32" />
</td>
</tr>
<tr>
<th align="right">stringIndexed[0]</th>
<td align="left">
<html:text property="stringIndexed[0]" size="32" />
</td>
<th align="right">nested.stringIndexed[0]</th>
<td align="left">
<html:text property="nested.stringIndexed[0]" size="32" />
</td>
</tr>
<tr>
<th align="right">stringIndexed[1]</th>
<td align="left">
<html:text property="stringIndexed[1]" size="32" />
</td>
<th align="right">nested.stringIndexed[1]</th>
<td align="left">
<html:text property="nested.stringIndexed[1]" size="32" />
</td>
</tr>
<tr>
<td> </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> </td>
</tr>
</table>
</html:form>
</body>
</html:html>
|