Spring Framework Reference Documentation
4.3.8.RELEASE Spring Framework xx
Configuration .................................................................................................. 593
Configuring the ViewResolver .................................................................. 594
Configuring the Views ............................................................................. 594
About Report Files .................................................................................. 594
Using JasperReportsMultiFormatView ...................................................... 594
Populating the ModelAndView ......................................................................... 595
Working with Sub-Reports ............................................................................... 596
Configuring Sub-Report Files .................................................................. 596
Configuring Sub-Report Data Sources ..................................................... 597
Configuring Exporter Parameters ..................................................................... 597
23.12. Feed Views ................................................................................................. 598
23.13. JSON Mapping View .................................................................................... 598
23.14. XML Mapping View ...................................................................................... 599
24. Integrating with other web frameworks ....................................................................... 600
24.1. Introduction .................................................................................................... 600
24.2. Common configuration ................................................................................... 601
24.3. JavaServer Faces 1.2 .................................................................................... 602
SpringBeanFacesELResolver (JSF 1.2+) ......................................................... 602
FacesContextUtils ........................................................................................... 602
24.4. Apache Struts 2.x .......................................................................................... 602
24.5. Tapestry 5.x .................................................................................................. 603
24.6. Further Resources ......................................................................................... 603
25. Portlet MVC Framework ............................................................................................ 604
25.1. Introduction .................................................................................................... 604
Controllers - The C in MVC ............................................................................ 605
Views - The V in MVC .................................................................................... 605
Web-scoped beans ......................................................................................... 605
25.2. The DispatcherPortlet ..................................................................................... 605
25.3. The ViewRendererServlet ............................................................................... 607
25.4. Controllers ..................................................................................................... 608
AbstractController and PortletContentGenerator ............................................... 609
Other simple controllers .................................................................................. 610
Command Controllers ..................................................................................... 610
PortletWrappingController ................................................................................ 611
25.5. Handler mappings .......................................................................................... 611
PortletModeHandlerMapping ............................................................................ 612
ParameterHandlerMapping .............................................................................. 612
PortletModeParameterHandlerMapping ............................................................ 613
Adding HandlerInterceptors ............................................................................. 613
HandlerInterceptorAdapter ............................................................................... 614
ParameterMappingInterceptor .......................................................................... 614
25.6. Views and resolving them .............................................................................. 614
25.7. Multipart (file upload) support ......................................................................... 614
Using the PortletMultipartResolver ................................................................... 615
Handling a file upload in a form ...................................................................... 615
25.8. Handling exceptions ....................................................................................... 619
25.9. Annotation-based controller configuration ........................................................ 619
Setting up the dispatcher for annotation support ............................................... 619
Defining a controller with @Controller .............................................................. 620
Mapping requests with @RequestMapping ....................................................... 620