1 24 package org.riotfamily.common.web.controller; 25 26 import java.util.Map ; 27 28 import javax.servlet.http.HttpServletRequest ; 29 import javax.servlet.http.HttpServletResponse ; 30 31 import org.riotfamily.common.web.util.ServletUtils; 32 import org.springframework.web.servlet.ModelAndView; 33 import org.springframework.web.servlet.mvc.ParameterizableViewController; 34 35 41 public class AttributeViewController extends ParameterizableViewController { 42 43 protected ModelAndView handleRequestInternal(HttpServletRequest request, 44 HttpServletResponse response) throws Exception { 45 46 Map attributes = ServletUtils.takeAttributesSnapshot(request); 47 return new ModelAndView(getViewName(), attributes); 48 } 49 } 50 | Popular Tags |