<s:iterator标签使用
标签 lt Iterator 使用
2023-09-14 08:59:40 时间
%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%
%@ taglib prefix="s" uri="/struts-tags" %
%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
html
head
base href=" %=basePath% "
title My JSP result.jsp starting page /title
meta http-equiv="pragma" content="no-cache"
meta http-equiv="cache-control" content="no-cache"
meta http-equiv="expires" content="0"
meta http-equiv="keywords" content="keyword1,keyword2,keyword3"
meta http-equiv="description" content="This is my page"
!--
link rel="stylesheet" type="text/css" href="styles.css"
--
/head
body
table align="center" width="40%" border="1"
tr
td id
/td
td username
/td
td password
/td
td userId
/td
/tr
s:iterator value="#request.list" id="us"
tr
td s:property value="#us.id"/
/td
td s:property value="#us.username"/
/td
td s:property value="#us.password"/
/td
td s:property value="#us.userId"/
/td
/tr
/s:iterator
/table
username:${user.username} %= request.getAttribute("username") % br
password:${user.password} %= request.getAttribute("password") % br
/body
/html
%@ taglib prefix="s" uri="/struts-tags" %
%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
html
head
base href=" %=basePath% "
title My JSP result.jsp starting page /title
meta http-equiv="pragma" content="no-cache"
meta http-equiv="cache-control" content="no-cache"
meta http-equiv="expires" content="0"
meta http-equiv="keywords" content="keyword1,keyword2,keyword3"
meta http-equiv="description" content="This is my page"
!--
link rel="stylesheet" type="text/css" href="styles.css"
--
/head
body
table align="center" width="40%" border="1"
tr
td id
/td
td username
/td
td password
/td
td userId
/td
/tr
s:iterator value="#request.list" id="us"
tr
td s:property value="#us.id"/
/td
td s:property value="#us.username"/
/td
td s:property value="#us.password"/
/td
td s:property value="#us.userId"/
/td
/tr
/s:iterator
/table
username:${user.username} %= request.getAttribute("username") % br
password:${user.password} %= request.getAttribute("password") % br
/body
/html
相关文章
- Cocos2D创建多彩文本显示标签
- HTML5标签速查
- 关于vue的title标签中出现的htmlWebpackPlugin.options.title
- <a>标签
- 拼接<a>标签相关属性
- 《ASP.NET1200例》<ItemTemplate>标签在html里面有什么具体的作用
- jstl: <c:url> 标签
- 一个表单里,如果有<button>标签存在,它会自动提交表单
- Clover – 给资源管理器加上标签页
- 使用CSS制作文字环绕图片效果(文字内容包含<li>标签)
- html中一些文字标签
- 充分利用HTML标签元素 – 简单的xtyle前端框架
- 页面中基于JSTL标签调用函数--之${fn:}内置函数
- java struts2入门学习--OGNL语言常用符号和常用标签学习
- 36. 使用 Chrome 开发者工具 Elements 标签动态修改 SAP UI5 应用的 CSS 类
- 把canvas标签里的图像下载成本地图片文件
- webpack打包配置禁止html标签全部转为小写
- 请说明meta标签的作用。
- HTML <td> 标签的 width 属性
- JSTL标签库 | 深入解析JSTL标签库
- jQuery EasyUI 布局 - 动态添加标签页(Tabs)