2008-05-08
向页面传值接收不到
Action
list.jsp
报错页面
HTTP Status 404 - No result defined for action com.struts.action.UserAction and result input
--------------------------------------------------------------------------------
type Status report
message No result defined for action com.struts.action.UserAction and result input
description The requested resource (No result defined for action com.struts.action.UserAction and result input) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.16
public String find() throws Exception {
Map request = (Map) ActionContext.getContext().get("request");
request.put("list", dao.findAll());
System.out.println("find");
return SUCCESS;
}
list.jsp
<body> <p> User </p> <s:iterator value="#request.list" status="u"> <s:property value="u.id" /> <s:property value="u.firstname" /> <s:property value="u.lastname" /> </s:iterator> </body>
报错页面
HTTP Status 404 - No result defined for action com.struts.action.UserAction and result input
--------------------------------------------------------------------------------
type Status report
message No result defined for action com.struts.action.UserAction and result input
description The requested resource (No result defined for action com.struts.action.UserAction and result input) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.16
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则
- 浏览: 1200 次

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
在ASP.NET 2.0中实现URL ...
不知道这样的方式和ISAPI的插件模式,在效率上有什么差别。
-- by 风中独火 -
在ASP.NET 2.0中实现URL ...
<system.web> <urlMappings enabl ...
-- by hunter001201 -
向页面传值接收不到
没人知道吗`````````````````````问题已经解决`````
-- by litoueva






评论排行榜