Subversion Repositories SmartDukaan

Rev

Rev 19707 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19707 Rev 19708
Line 63... Line 63...
63
        }
63
        }
64
    }
64
    }
65
    
65
    
66
    public BaseController() {
66
    public BaseController() {
67
		htmlSnippets = new HashMap<String, String>();
67
		htmlSnippets = new HashMap<String, String>();
68
		if(request.getSession() != null) {
-
 
69
			OCRSession = StringUtils.isNotEmpty((String)request.getSession().getAttribute("OCR_SESSION"));
-
 
70
		} else {
-
 
71
			OCRSession = false;
-
 
72
		}
-
 
73
	}
68
	}
74
 
69
 
75
    public void setServletResponse(HttpServletResponse response) {
70
    public void setServletResponse(HttpServletResponse response) {
76
        this.response = response;
71
        this.response = response;
77
    }
72
    }
78
 
73
 
79
    public void setServletRequest(HttpServletRequest request) {
74
    public void setServletRequest(HttpServletRequest request) {
80
        this.request = request;
75
        this.request = request;
81
        this.session = request.getSession();
76
        this.session = request.getSession();
-
 
77
        if(request.getSession() != null) {
-
 
78
			OCRSession = StringUtils.isNotEmpty((String)request.getSession().getAttribute("OCR_SESSION"));
-
 
79
		} else {
-
 
80
			OCRSession = false;
-
 
81
		}
82
    }
82
    }
83
    
83
    
84
    public void setSession(Map<String, Object> sessionMap) {
84
    public void setSession(Map<String, Object> sessionMap) {
85
        this.sessionMap = sessionMap;
85
        this.sessionMap = sessionMap;
86
    }
86
    }