Stuts Action中的跳转方法!

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

      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" />

 

 

你可能感兴趣的:(Stuts Action中的跳转方法!)