Chinaunix首页 | 论坛 | 博客
  • 博客访问: 983041
  • 博文数量: 152
  • 博客积分: 4937
  • 博客等级: 上校
  • 技术积分: 1662
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-05 16:55
文章分类

全部博文(152)

文章存档

2013年(12)

2012年(6)

2011年(58)

2010年(43)

2009年(1)

2008年(15)

2007年(17)

我的朋友

分类: Java

2010-07-06 11:53:09

/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.newspager.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import com.newspager.model.Account;

public class BaseAction extends DispatchAction {

 public ActionForward execute(ActionMapping mapping, ActionForm form,
   HttpServletRequest request, HttpServletResponse response)throws Exception {
  Account loginUser = (Account)request.getSession().getAttribute("login");
  if(loginUser == null){
   //return mapping.findForward("back_login");
   return new ActionForward("/goto.jsp");
  }
  
  return super.execute(mapping, form, request, response);
 }
}
阅读(765) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~