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

📄 nested.jsp

📁 struts标签库范例 nested标签库
💻 JSP
字号:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ page import="java.util.Vector" %>
<%@ page import="nestedtaglibs.Person" %>
<%@ page import="nestedtaglibs.Address" %>
<html:html>
<head>
<title>Nested sample code</title>
</head>
<body bgcolor="white">

<h3>Nested sample code</h3>

<p>This page provides examples of the following Struts NESTED tags:<br>
<ul>
<li>&lt;nested:nest&gt;</li>
<li>&lt;nested:select&gt;</li>
<li>&lt;nested:text&gt;</li>
<li>&lt;nested:writeNesting&gt;</li>
</ul>

<%--
The following section shows nest.
--%>
<html:form action="/showPerson">
<nested:nest property="person">
Last Name: <nested:text property="lastName"/><BR>
First Name: <nested:text property="firstName"/><BR>
Age: <nested:text property="age"/><BR>
Gender: <nested:select property="gender">
<html:option value="MALE">Male</html:option>
<html:option value="FEMALE">Female</html:option>
</nested:select><P>
<nested:nest property="address">
Current nesting is: <nested:writeNesting/><BR>
Street 1: <nested:text property="street1"/><BR>
Street 2: <nested:text property="street2"/><BR>
City: <nested:text property="city"/><BR>
Province: <nested:text property="province"/><BR>
Postal Code: <nested:text property="postalCode"/><BR>
</nested:nest>
</nested:nest>
<html:submit/>
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -