📄 nested-nest.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" import="java.util.*"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<html>
<head>
<html:base/>
<title><nested:nest></title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="white">
<h1><nested:nest></h1>
<p><nested:nest>。以下是一段示例代码:</p>
<font class="CodeStyle">
<html:form action="/test.do"><br>
checkbox1:<html:checkbox property="checkbox1"/><br>
checkbox2:<html:checkbox property="checkbox2"/><br>
<html:submit property="submit" value="测试"/><br>
</html:form><br>
<html:form action="/testnest.do"><br>
<nested:nest property="account" ><br>
用户名 :<nested:text property="username" /><br>
密码 :<nested:password property="password"/><br>
确认密码 :<html:password name="workingAccountForm" property="repeatedPassword"/><br>
名字 :<nested:text property="firstName"/><br>
姓氏 :<nested:text property="lastName" /><br>
电子邮件 :<nested:text size="40" property="email" /><br>
联系电话 :<nested:text property="phone" /><br>
<h4>联系地址</h4>
<nested:nest property="address" ><br>
地址1 :<nested:text size="40" property="address1" /><br>
地址2 :<nested:text size="40" property="address2" /><br>
城市 :<nested:text property="city" /><br>
省份 :<nested:text size="4" property="state" /><br>
邮编 :<nested:text size="10" property="zip" /><br>
国家 :<nested:text size="15" property="country" /><br>
</nested:nest><br>
<h4>系统偏好设定</h4>
<nested:nest property="profile" ><br>
默认语言 :<br>
<nested:select property="languagePreference"><br>
<html:options name="workingAccountForm" property="languages" /><br>
</nested:select><br>
最喜欢的商品类别:<br>
<nested:select property="favouriteCategoryId"><br>
<html:options name="workingAccountForm" property="categories" /><br>
</nested:select><br>
<nested:checkbox property="listOption"/> 显示浏览列表<br>
<nested:checkbox property="bannerOption"/>显示个性Banner<br>
</nested:nest><br>
</nested:nest><br>
<html:submit property="submit" value="测试"/><br>
</html:form><br>
</font>
<h4>用户注册信息</h4>
<html:form action="/testnest.do">
<nested:nest property="account" >
用户名 :<nested:text property="username" /><br>
密码 :<nested:password property="password"/><br>
确认密码 :<html:password name="workingAccountForm" property="repeatedPassword"/><br>
名字 :<nested:text property="firstName"/><br>
姓氏 :<nested:text property="lastName" /><br>
电子邮件 :<nested:text size="40" property="email" /><br>
联系电话 :<nested:text property="phone" /><br>
<h4>联系地址</h4>
<nested:nest property="address" >
地址1 :<nested:text size="40" property="address1" /><br>
地址2 :<nested:text size="40" property="address2" /><br>
城市 :<nested:text property="city" /><br>
省份 :<nested:text size="4" property="state" /><br>
邮编 :<nested:text size="10" property="zip" /><br>
国家 :<nested:text size="15" property="country" /><br>
</nested:nest>
<h4>系统偏好设定</h4>
<nested:nest property="profile" >
默认语言 :
<nested:select property="languagePreference">
<html:options name="workingAccountForm" property="languages" />
</nested:select><br>
最喜欢的商品类别:
<nested:select property="favouriteCategoryId">
<html:options name="workingAccountForm" property="categories" />
</nested:select><br>
<nested:checkbox property="listOption"/> 显示浏览列表<br>
<nested:checkbox property="bannerOption"/>显示个性Banner<br>
</nested:nest>
</nested:nest>
<html:submit property="submit" value="测试"/>
</html:form>
<p>
<a href="index.jsp">返回主页面</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -