这是struts-config.xml配置文件
<action path="/edituser" type="com.bdrj.action.EdituserAction"
           attribute="userForm" name="userForm" parameter="method" validate="false">    
     <forward name="index" path="/index.jsp" redirect="true"/>
     <forward name="edituser" path="/eduser.jsp" />
     <forward name="norights" path="/norights.jsp" />
 </action>  
然后action继承dispatchaction,在这个action中有一个delete方法调用:
forward=mapping.findForward("/edituser.do?method=browse");
public ActionForward browse(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception {
这个方法
然后报的异常是:unable to find '/edituser.do?method=browse' forward
是不是哪块配置不对啊?

解决方案 »

  1.   

    我还像没见到 forward=mapping.findForward("/edituser.do?method=browse"); 这样些这样写试试 forward=mapping.findForward("xxxx"); <forward name="xxxx" path="/edituser.do?method=browse" /> 这样试试
      

  2.   

    forward=mapping.findForward("/edituser.do?method=browse"); 
    你这样写是在配置文件中找到 对应"/edituser.do?method=browse"的映射
    这样写
    response.sendRedirect("/edituser.do?method=browse")
    return null;
      

  3.   

    forward=mapping.findForward("/edituser.do?method=browse");
    它肯定是 unable to find '/edituser.do?method=browse' forward 
    因为找不到这个name。
    看来配置文件的属性你还是不了解。
    多看看吧。
      

  4.   

    findForward只查找配置文件中已经有action名称,
    你写的那个只要不在配置文件中出现,都找不到。
      

  5.   

    response.sendRedirect("/edituser.do?method=browse") 
    去掉  /