⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nested-nest.jsp

📁 Spring +Web 的完整 MyEclipse 项目源码,使用者可以作为入门材料可以在此基础上深入学习
💻 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>&lt;nested:nest&gt;</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="white">

<h1>&lt;nested:nest&gt;</h1>

<p>&lt;nested:nest&gt;。以下是一段示例代码:</p>
<font class="CodeStyle">
&lt;html:form action="/test.do"&gt;<br>
checkbox1:&lt;html:checkbox property="checkbox1"/&gt;<br>
checkbox2:&lt;html:checkbox property="checkbox2"/&gt;<br>
&lt;html:submit property="submit" value="测试"/&gt;<br>
&lt;/html:form&gt;<br>

&lt;html:form action="/testnest.do"&gt;<br>
	&lt;nested:nest property="account" &gt;<br>
		用户名&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text property="username" /&gt;<br>
		密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:password property="password"/&gt;<br>
		确认密码&nbsp;&nbsp;:&lt;html:password name="workingAccountForm" property="repeatedPassword"/&gt;<br>
		名字&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text property="firstName"/&gt;<br>
		姓氏&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text property="lastName" /&gt;<br>
		电子邮件&nbsp;&nbsp;:&lt;nested:text size="40" property="email" /&gt;<br>
		联系电话&nbsp;&nbsp;:&lt;nested:text property="phone" /&gt;<br>

		<h4>联系地址</h4>
		&lt;nested:nest property="address" &gt;<br>
			地址1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text size="40" property="address1" /&gt;<br>
			地址2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text size="40" property="address2" /&gt;<br>
			城市&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text property="city" /&gt;<br>
			省份&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text size="4" property="state" /&gt;<br>
			邮编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text size="10" property="zip" /&gt;<br>
			国家&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&lt;nested:text size="15" property="country" /&gt;<br>
		&lt;/nested:nest&gt;<br>

		<h4>系统偏好设定</h4>
		&lt;nested:nest property="profile" &gt;<br>
			默认语言&nbsp;&nbsp;:<br>
			&lt;nested:select property="languagePreference"&gt;<br>
  				&lt;html:options name="workingAccountForm" property="languages" /&gt;<br>
			&lt;/nested:select&gt;<br>

			最喜欢的商品类别:<br>
			&lt;nested:select property="favouriteCategoryId"&gt;<br>
  				&lt;html:options name="workingAccountForm" property="categories" /&gt;<br>
			&lt;/nested:select&gt;<br>

			&lt;nested:checkbox property="listOption"/&gt; 显示浏览列表<br>
			&lt;nested:checkbox property="bannerOption"/&gt;显示个性Banner<br>
		&lt;/nested:nest&gt;<br>
	&lt;/nested:nest&gt;<br>
	&lt;html:submit property="submit" value="测试"/&gt;<br>
&lt;/html:form&gt;<br>

</font>

<h4>用户注册信息</h4>
<html:form action="/testnest.do">
	<nested:nest property="account" >
		用户名&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text property="username" /><br>
		密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:password property="password"/><br>
		确认密码&nbsp;&nbsp;:<html:password name="workingAccountForm" property="repeatedPassword"/><br>
		名字&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text property="firstName"/><br>
		姓氏&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text property="lastName" /><br>
		电子邮件&nbsp;&nbsp;:<nested:text size="40" property="email" /><br>
		联系电话&nbsp;&nbsp;:<nested:text property="phone" /><br>

		<h4>联系地址</h4>
		<nested:nest property="address" >
			地址1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text size="40" property="address1" /><br>
			地址2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text size="40" property="address2" /><br>
			城市&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text property="city" /><br>
			省份&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text size="4" property="state" /><br>
			邮编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text size="10" property="zip" /><br>
			国家&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<nested:text size="15" property="country" /><br>
		</nested:nest>

		<h4>系统偏好设定</h4>
		<nested:nest property="profile" >
			默认语言&nbsp;&nbsp;:
			<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 + -