前台代码:
window.location.href="<%=path%>/role.do?method=addRole";
配置文件:
<action
attribute="roleForm"
name="roleForm"
path="/role"
scope="request"
type="com.webravor.controller.config.action.RoleAction"
parameter="method"
>
<forward name="add_suc" path="/role.do?method=findAll"></forward>
<forward name="add_fai" path="/role.do?method=findAll"></forward>
<forward name="update_fail" path="/role.do?method=findAll"></forward>
<forward name="update_success" path="/role.do?method=findAll"></forward>
<!-- 普通角色修改成功 -->
<forward name="updsuc" path="/jsp/config/showRole.jsp"></forward>
<forward name="allRole" path="/jsp/config/allRole.jsp"></forward>
<forward name="del" path="/role.do?method=findAll"></forward>
<forward name="addrole" path="/jsp/config/addRole.jsp"></forward>
Action文件:
public ActionForward addRole(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse response) {
System.out.println("------------");
return mapping.findForward("addrole");
}
我找了好久,不知道什么原因 求各位大神帮忙啊 。。。。