struts2 注解 使用拦截器判断用户是否登录
? 添加拦截器类
//@Component("userAciton")/* * 用户的Action类 * @author DZWei */@ParentPackage(value = "defaultpackage")//应用全局包@Scope("prototype")@Namespace("/")public class UserAction extends BaseAction {@Action(value = "initializationAction", results = {@Result(name = "success", location = "XXXXXXXXX"),@Result(name = "fail", location = "XXXXXXX") })public String initialization() throws Exception { ................................................ }}
?
?