📄 html-setters.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<html-el:html>
<head>
<title>Test struts-html-el Property Setters</title>
</head>
<body bgcolor="white">
<div align="center">
<h1>Test struts-html-el Property Setters</h1>
</div>
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.
<html-el:form action="html-setters.do">
<table border="0" width="100%">
<tr>
<th align="center" colspan="4">Scalar Properties</th align="center">
</tr>
<tr>
<th align="right">booleanProperty</th>
<td align="left">
<html-el:checkbox property="booleanProperty"/>
</td>
<th align="right">nested.booleanProperty</th>
<td align="left">
<html-el:checkbox property="nested.booleanProperty"/>
</td>
</tr>
<tr>
<th align="right">doubleProperty</th>
<td align="left">
<html-el:text property="doubleProperty" size="32"/>
</td>
<th align="right">nested.doubleProperty</th>
<td align="left">
<html-el:text property="nested.doubleProperty" size="32"/>
</td>
</tr>
<tr>
<th align="right">floatProperty</th>
<td align="left">
<html-el:text property="floatProperty" size="32"/>
</td>
<th align="right">nested.floatProperty</th>
<td align="left">
<html-el:text property="nested.floatProperty" size="32"/>
</td>
</tr>
<tr>
<th align="right">intProperty</th>
<td align="left">
<html-el:text property="intProperty" size="32"/>
</td>
<th align="right">nested.intProperty</th>
<td align="left">
<html-el:text property="nested.intProperty" size="32"/>
</td>
</tr>
<tr>
<th align="right">longProperty</th>
<td align="left">
<html-el:text property="longProperty" size="32"/>
</td>
<th align="right">nested.longProperty</th>
<td align="left">
<html-el:text property="nested.longProperty" size="32"/>
</td>
</tr>
<tr>
<th align="right">stringProperty</th>
<td align="left">
<html-el:text property="stringProperty" size="32"/>
</td>
<th align="right">nested.stringProperty</th>
<td align="left">
<html-el:text property="nested.stringProperty" size="32"/>
</td>
</tr>
<tr>
<th align="center" colspan="4">Indexed Properties</th align="center">
</tr>
<tr>
<th align="right">intIndexed[0]</th>
<td align="left">
<html-el:text property="intIndexed[0]" size="32"/>
</td>
<th align="right">nested.intIndexed[0]</th>
<td align="left">
<html-el:text property="nested.intIndexed[0]" size="32"/>
</td>
</tr>
<tr>
<th align="right">intIndexed[1]</th>
<td align="left">
<html-el:text property="intIndexed[1]" size="32"/>
</td>
<th align="right">nested.intIndexed[1]</th>
<td align="left">
<html-el:text property="nested.intIndexed[1]" size="32"/>
</td>
</tr>
<tr>
<th align="right">stringIndexed[0]</th>
<td align="left">
<html-el:text property="stringIndexed[0]" size="32"/>
</td>
<th align="right">nested.stringIndexed[0]</th>
<td align="left">
<html-el:text property="nested.stringIndexed[0]" size="32"/>
</td>
</tr>
<tr>
<th align="right">stringIndexed[1]</th>
<td align="left">
<html-el:text property="stringIndexed[1]" size="32"/>
</td>
<th align="right">nested.stringIndexed[1]</th>
<td align="left">
<html-el:text property="nested.stringIndexed[1]" size="32"/>
</td>
</tr>
<tr>
<th align="right">stringIndexed[1]</th>
<td align="left">
<html-el:textarea property="stringIndexed[1]" rows="${1+3}"/>
</td>
<th align="right">nested.stringIndexed[1]</th>
<td align="left">
<html-el:textarea disabled="${!empty pageScope}"
property="nested.stringIndexed[1]"/>
</td>
</tr>
<tr>
<th align="right">stringIndexed[1]</th>
<td align="left">
<html-el:text property="stringIndexed[1]" size="32"/>
</td>
<th align="right">nested.stringIndexed[1]</th>
<td align="left">
<html-el:text property="nested.stringIndexed[1]"
disabled="${!empty pageScope}" size="32"/>
</td>
</tr>
<tr>
<td> </td>
<td align="right">
<html-el:submit>Save</html-el:submit>
</td>
<td align="left">
<html-el:reset>Reset</html-el:reset>
<html-el:cancel>Cancel</html-el:cancel>
</td>
<td> </td>
</tr>
</table>
</html-el:form>
</html-el:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -