Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.vsame.url2sql.helper;
 
网页辅助类 2012-7-1 上午9:29:46

Author(s):
Gaollg
public class WebHelper {
	public static void init(HttpServletRequest requestHttpServletResponse response) {
		Url2SqlContext temp = new Url2SqlContext();
		temp.setRequest(request);
		temp.setResponse(response);
	}
	public static Url2SqlContext getContext() {
		if(temp == null){
			temp = new Url2SqlContext();
		}
		return temp;
	}
销毁,在每次请求完成后,调用回收
	public static void remove(){
		try {
			if(temp != null){
				temp.destroy();
			}
catch (Exception e) {
		}finally {
		}
	}
New to GrepCode? Check out our FAQ X