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

📄 personlist.jsp

📁 Struts+Spring开发
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>Hello</title>
    </head>
    <body>
        <h3>所有人员</h3>
        <s:select list="accountDTOList" listKey="userID" listValue="firstName" label="All Persons" name="selectedPerson"/>
        <br>
        <s:radio list="accountDTOList" listKey="userID" listValue="firstName" label="All Persons" name="selectedPerson2"/>
        <br>
        <s:checkboxlist name="selectedPerson4" list="accountDTOList" listKey="userID" listValue="firstName" label="All Persons"/>
        <br>
        
        <s:iterator value="accountDTOList">
       		<s:checkbox fieldValue="%{userID}" label="%{firstName}" name="accountDTOList" id="personList-%{userID}"/>
       	</s:iterator>
       	<s:iterator id="p" value="accountDTOList">
       		<s:property value="userID"/>:<s:property value="firstName"/>
       		<br>
       	</s:iterator>
       	
       	
       	
       	==============================================================
       	<br>

<pre>
Generate an iterator with count attribute
<s:generator val="%{'aaa,bbb,ccc,ddd,eee'}" count="4" separator=",">
<s:iterator>
	<s:property />
</s:iterator>
</s:generator>
</pre>
This generates an iterator, but only 3 entries will be available in the iterator
generated, namely aaa, bbb and ccc respectively because count attribute is set to 3

<pre>
Generate an iterator with count attribute
<s:generator val="%{'person1,person2,person3,person4,person5'}" count="4" separator=",">
<s:iterator>
	<s:property />
</s:iterator>
</s:generator>
</pre
    </body>
</html>

⌨️ 快捷键说明

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