向页面传值接收不到
Actionpublic 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
页:
[1]