📄 nested-nest-result.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" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<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>运行结果:</p>
<jsp:useBean id="workingAccountForm" type="org.apache.struts.webapp.exercise.AccountActionForm" scope="session"/>
<nested:root name="workingAccountForm">
当前嵌套层次是:<nested:writeNesting/><br>
<nested:nest property="account" >
当前嵌套层次是:<nested:writeNesting/><br>
用户名 :<nested:write property="username" /><br>
密码 :<nested:write property="password"/><br>
确认密码 :<bean:write name="workingAccountForm" property="repeatedPassword"/><br>
名字 :<nested:write property="firstName"/><br>
姓氏 :<nested:write property="lastName" /><br>
电子邮件 :<nested:write property="email" /><br>
联系电话 :<nested:write property="phone" /><br>
<h4>联系地址</h4>
<nested:nest property="address" >
当前嵌套层次是:<nested:writeNesting/><br>
地址1 :<nested:write property="address1" /><br>
地址2 :<nested:write property="address2" /><br>
城市 :<nested:write property="city" /><br>
省份 :<nested:write property="state" /><br>
邮编 :<nested:write property="zip" /><br>
国家 :<nested:write property="country" /><br>
</nested:nest>
<h4>系统偏好设定</h4>
<nested:nest property="profile" >
当前嵌套层次是:<nested:writeNesting/><br>
默认语言 :<nested:write property="languagePreference"/><br>
最喜欢的商品类别:<nested:write property="favouriteCategoryId"/><br>
<nested:write property="listOption"/> 显示浏览列表<br>
<nested:write property="bannerOption"/> 显示个性Banner<br>
</nested:nest>
</nested:nest>
</nested:root>
<p>
<a href="index.jsp">返回主页面</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -