WdWheyr 2010-04-19 16:04
浏览 323
已采纳

ssh查询异常 javax.servlet.jsp.JspException: No collection found

userlistForm找不到还是怎么的?
jsp 代码[code="java"]












"
target="_blank">编辑


/logic:iterate
/html:form[/code]
UserListAction处理代码
[code="java"]public ActionForward execute(ActionMapping mapping,ActionForm form,
HttpServletRequest request,HttpServletResponse response){
UserListForm userlistForm=(UserListForm)form;
userlistForm.setUserList(dao.findUser());
request.setAttribute("userlistForm", userlistForm);
System.out.println(dao.findUser());
return mapping.findForward("userlist");
}[/code]
struts配置文件
[code="java"]

path="/userlist" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">

[/code]

  • 写回答

3条回答 默认 最新

  • xie2022228 2010-04-19 17:52
    关注

    贴get方法吧

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?