02 2014 档案
摘要:struts2 的重定向和struts1 在使用方法上有所不同。如在一个登录的action中验证成功后,重定向为显示用户信息的action: showInfo.do一、在struts1 中实现: 程序代码 public class LoginAction extends Action {public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { //一些处理……...
阅读全文