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

猜你喜欢

转载自blog.csdn.net/longlongriver/article/details/6326186
今日推荐