Struts2 s_property 标签
来源:互联网 发布:如何测试导航端口 编辑:程序博客网 时间:2024/05/23 21:09
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
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>Struts 2 标签之s:property的用法</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 border="1">
<tr>
<th>编号</th>
<th>书名</th>
<th>作者</th>
</tr>
<s:iterator value="#{'Spring 2.0':'李刚','Java':'张三','j2ee study':'李四'}" id="name" status="st">
<tr <s:if test="#st.odd">style="background-color:#bbbbbb"</s:if> >
<td><s:property value="#st.count"/></td>
<td><s:property value="key"/></td>
<td><s:property value="value"/></td>
</tr>
</s:iterator>
</table>
</body>
</html>
效果图:
http://hi.baidu.com/bdusnb/blog/item/1235190aa5575f39b0351d28.html
- Struts2 s_property 标签
- struts2标签
- struts2标签
- struts2标签
- Struts2 标签
- struts2标签
- struts2标签
- struts2 标签
- Struts2 标签
- Struts2标签
- struts2 标签
- Struts2标签
- struts2标签
- Struts2 标签
- struts2标签
- struts2 标签
- struts2标签
- struts2 标签
- c++资源大全
- OGNL & ValueStack 入门_Live-my-Life
- url编码地址
- CreateFile 一点总结
- 基于WinCE的嵌入式系统注册表的研究
- Struts2 s_property 标签
- apt-get update出现NO_PUBKEY错误怎么办?
- vfp on key lable 用法
- 程序内存布局
- 2009-07-10 TIPTOP
- IdS入侵检测系统
- const限定符的使用
- 记录
- 全排列