标签:string static pkg length empty factory etc tcl 框架
//自定义拦截器类:LoginInterceptor ; package com.java.action.interceptor; import javax.servlet.http.HttpSession; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionInvocation; public class LoginInterceptor extends MethodFilterInterceptor { @Override HttpSession session = ServletActionContext.getRequest().getSession(); } |
<!-- package标签下 --> <package name="helloactionpkg" extends="struts-default" namespace="/"> <!-- package标签内容 标签尾 -->
<!-- action标签下 --> <!-- param 标签下 name="excludeMethods" 放行多个方法 方法名1,方法名2 用逗号隔开即可 --> <!-- action标签内容 标签尾 --> |
protected Set<String> excludeMethods = Collections.emptySet(); public void setExcludeMethods(String excludeMethods) { public static Set<String> commaDelimitedStringToSet(String s) { |
标签:string static pkg length empty factory etc tcl 框架
原文地址:http://www.cnblogs.com/moly/p/6830020.html