一个关于JSP如何自动加载ACTION的问题

diaobiyong 2008-04-17 04:19:13
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=gb2312"%>
<%@ taglib prefix="ww" uri="/webwork"%>
<html>
<head>
<title>下载</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#ccff99">
<br />
<br />
<br />
下载中心:
<ww:set name="pager" value="#request.pager"/>
<ww:if test="#pager.hasFirst">
<a href="repository!getList.action?currentPage=1">首页</a>
</ww:if>
<ww:if test="#pager.hasPrevious">
<a href="repository!getList.action?currentPage=<ww:property value="#pager.currentPage-1"/>">上一页</a>
</ww:if>
<ww:if test="#pager.hasNext">
<a href="repository!getList.action?currentPage=<ww:property value="#pager.currentPage+1"/>">下一页</a>
</ww:if>
<ww:if test="#pager.hasLast">
<a href="repository!getList.action?currentPage=<ww:property value="#pager.totalPage"/>">尾页</a>
</ww:if>
当前第<ww:property value="#pager.currentPage"/>页,总共<ww:property value="#pager.totalPage"/>页
<table width="800">
<tr height="20" align="center">
<td>分类</td>
<td>标题</td>
<td>描述</td>
<td>上传时间</td>
<td>文件大小</td>
<td>发布人</td>
<td>附件名</td>
</tr>
<ww:iterator value="#request['repositorys']" id="repository">
<tr height="20" align="center">
<td><ww:property value="#repository.type"/></td>
<td><ww:property value="#repository.caption"/></td>
<td><ww:property value="#repository.description"/></td>
<td><ww:property value="#repository.uploadDate"/></td>
<td><ww:property value="#repository.fileSize"/></td>
<td><ww:property value="#repository.name"/></td>
<td><ww:property value="#repository.filePath"/></td>
<td>
<form action="maximo/jsp/do_download.jsp" method="post">
<input type="hidden" value="<ww:property value="#repository.filePath"/>" name="filePath"/>
<input type="submit" value="下载"/>
</form>
</td>
</tr>
</ww:iterator>
</table>
</body>
</html>
直接访问这JSP页面时怎么自动去调用repository!getList.action这个ACTION
不是从别的地方跳转过来请问怎么实现
...全文
785 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shuaizq77 2008-07-02
  • 打赏
  • 举报
回复
偶也有类似问题啊,楼主解决了吗?
Landor2004 2008-04-17
  • 打赏
  • 举报
回复
用action标签如何

<ww:action name="repository!getList"/>

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧