`
zwdsmileface
  • 浏览: 154949 次
社区版块
存档分类
最新评论
文章列表
在struts2中自定义filter 防止用户通过手动输入网址进行相应操作 SessionFilter.java public class SessionFilter implements Filter { public FilterConfig config; public void destroy() { // TODO Auto-generated method stub this.config=null; } public static boolean isContains(String container, String[] regx) { ...
用于做拦截是否已经登陆 检测session中是否已经存在用户信息 LoginIntercept.java public class LoginIntercept extends MethodFilterInterceptor{ @Override protected String doIntercept(ActionInvocation arg0) throws Exception { HttpServletRequest request = ServletActionContext.getRequest(); HttpSession session = reques ...
最近在学习struts2关于action之间的跳转 后台代码:LoginAction.java public class LoginAction extends ActionSupport{ private String userName; private String password; public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public Strin ...
Global site tag (gtag.js) - Google Analytics