主要是不知道你的异常是什么,action好像没有错,你在jsp上跳转的时候的问题吗?

解决方案 »

  1.   

    我只想知道,在这种情况下,如何呼叫DispatchAction中的相关函数我是这样的:
     response.sendRedirect("./businessEntity.do?method=select");这样合适么?会不会有隐患?还是有更好的办法?
      

  2.   

    String path = actionMapping.findForward("XXX").getPath();
    ActionForward forward = new ActionForward(path+"method=select");
    forward.setRedirect(true);
    return forward;这样先得到路径,然后在forward就可以了
      

  3.   

    或者在struts中直接配置跳转路径:
    <forward name="XXX" path="/businessEntity.do?method=select"/>这样就可以直接mapping.findForward("XXX")了;
      

  4.   

    你应该把"a"发到action,让action或者是你的service进行处理,并且分派,你在jsp页面里这样写本身就模糊了层之间的关系