struts不执行方法
这是我的ACTION:
public ActionForward selectall(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception
{
System.out.println("before");
UserinfoActionForm userform=(UserinfoActionForm) form;
try {
request.setAttribute("all", DAOFactory.getUserinfoInstance()
.QueryAll());
} catch (Exception e) {
}
System.out.println("after");
return mapping.findForward("list");
}
这是我的JSP:
<a href="user.do?status=selectall">用户管理</a><p>
这是我的配置文件:
<action name="UserinfoForm" path="/user" attribute="UserinfoForm" input="/errors.jsp"
type="cn.telmedia.cmsa.userinfo.action.UserinfoAction" scope="request" parameter="status">
<forward name="success" path="/success.jsp" contextRelative="true"></forward>
<forward name="fail" path="/success.jsp" contextRelative="true"></forward>
<forward name="insertdo" path="/insert_do.jsp"></forward>
<forward name="update" path="/update.jsp"></forward>
<forward name="updatedo" path="/update_do.jsp"></forward>
<forward name="deletedo" path="/delete_do.jsp" contextRelative="true"></forward>
<forward name="list" path="/user/user_list.jsp" contextRelative="true"></forward>
</action>
为什么我点这个的时候<a href="user.do?status=selectall">用户管理</a><p>不执行ACTION里的方法啊?一运行就到了input上的页面上啊?