Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.nan21.dnet.core.web.controller.ui.extjs;
 
 import java.util.Map;
 
 import  javax.servlet.http.HttpServletRequest;
 import  javax.servlet.http.HttpServletResponse;
 
import  org.springframework.security.core.context.SecurityContextHolder;
import  org.springframework.stereotype.Controller;
import  org.springframework.web.bind.annotation.RequestMapping;
import  org.springframework.web.bind.annotation.RequestMethod;
import  org.springframework.web.servlet.ModelAndView;
@Controller
	@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
	protected ModelAndView home(HttpServletRequest request,
			HttpServletResponse responsethrows Exception {
		try {
			@SuppressWarnings("unused")
			SessionUser su = (SessionUser) SecurityContextHolder.getContext()
					.getAuthentication().getPrincipal();
catch (java.lang.ClassCastException e) {
			// anonymous user
			throw new NotAuthorizedRequestException("Not authenticated");
		}
		Map<StringObjectmodel = new HashMap<StringObject>();
		this._prepare(modelrequestresponse);
		/* ========== extensions =========== */
		model.put(
				"extensions",
		return new ModelAndView(this.model);
	}
New to GrepCode? Check out our FAQ X