啥也不说了,直接上例子!!!!
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ 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 'product.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">
-->
<script type="text/javascript">
function opennew(id, name, price) {
window.open("update.jsp?id=" + id + "&name=" + encodeURIComponent(name) + "&price=" + price,
"newwindow", "height=300,width=400,top=100,left=500,resizable=no"
);
}
</script>
</head>
<body>
<table border=1>
<tr>
<td>代码</td>
<td>名称</td>
<td>价格</td>
</tr>
<s:iterator value = "list">
<tr>
<td><s:property value = "product_id"/></td>
<td><s:property value = "product_name"/></td>
<td><s:property value = "product_price"/></td>
<td><a href="javascript:opennew('<s:property value = "product_id"/>',
'<s:property value = "product_name"/>',
'<s:property value = "product_price"/>')">修改</a></td>
</tr>
</s:iterator>
</table>
</body>
</html>