Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.nan21.dnet.core.web.controller.ui.senchatouch;
 
 import  javax.servlet.http.HttpServletRequest;
 import  javax.servlet.http.HttpServletResponse;
 
 
 import  org.springframework.security.core.context.SecurityContextHolder;
 import  org.springframework.web.servlet.ModelAndView;
public class UiSenchaTouchMainController extends
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse responsethrows Exception {
		try {
			@SuppressWarnings("unused")
			SessionUser su = (SessionUser) SecurityContextHolder.getContext()
					.getAuthentication().getPrincipal();
catch (java.lang.ClassCastException e) {
			response.sendRedirect("/nan21.dnet.core.web/security/session/login");
			return null;
		}
		this._prepare(requestresponse);
		return new ModelAndView(this.this.);
	}
New to GrepCode? Check out our FAQ X