论坛首页 入门讨论版 Struts

向页面传值接收不到

浏览 209 次
该帖已经被评为新手帖
作者 正文
时间:2008-05-08
Action
	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
   
时间:2008-05-08
没人知道吗`````````````````````问题已经解决`````
   
0 请登录后投票
论坛首页 入门讨论版 Struts

跳转论坛:
JavaEye推荐