除了<html:form action="">
       <html:submmit/>
    </html:form>以外还有那个几种
<html:link href="mainpage.do?p=home">主页</html:form>
<html:link page="mainpage.do?p=home">主页</html:form>是不是可以

解决方案 »

  1.   

    还有很多种 去查查API就知道了
      

  2.   

    <a href="mainpage.do?method=registPage"><bean:message key="top.jsp.regist"/></a><action
          parameter="method"
          path="/mainpage"
          type="com.nsf.shop.actions.MainAction">
          <forward name="welcome" path="/jspPage/welcome.jsp" />
        </action>public ActionForward registPage(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws Exception {
    System.out.println("registPage.method");
    HttpSession session = request.getSession();
    session.setAttribute("mainPage", "/jspPage/mainPage/regist.jsp");
    return mapping.findForward("welcome");你看这样为什么不行:找不到资源Invalid path was requested
      

  3.   

    location.replace("/项目名/allAction.do?method=toAdd");
      

  4.   

    <bean:message key="top.jsp.regist"/>  这句出问题了。