?? html-setters.jsp
字號:
<%@ 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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -