Stuts Action中的跳转方法!

    技术2022-05-20  54

    可以用类似如下的方法进行跳转:

          response.sendRedirect("doc.do?state=edit&id=" + doc.getId());

     

    几种跳转模式:



    return new ActionForward (new StringBuffer(mapping.findForward("delete-with-relation").getPath() ).append("&linkid=" + linkid).toString(), true);


    return new ActionForward (new StringBuffer(“/cms/main.jsp ”).append("&linkid=" + linkid).toString(), true);


    < forward name="change-status-success" redirect="true" path=" /link/proxyF.do ?method=list" />

     

     


    最新回复(0)