Spring Framework Reference Documentation
4.2.4.RELEASE Spring Framework xix
Document view definitions ....................................................................... 574
Controller code ....................................................................................... 574
Subclassing for Excel views .................................................................... 574
Subclassing for PDF views ..................................................................... 576
22.11. JasperReports .............................................................................................. 576
Dependencies ................................................................................................ 576
Configuration .................................................................................................. 576
Configuring the ViewResolver .................................................................. 577
Configuring the Views ............................................................................. 577
About Report Files .................................................................................. 577
Using JasperReportsMultiFormatView ...................................................... 577
Populating the ModelAndView ......................................................................... 578
Working with Sub-Reports ............................................................................... 579
Configuring Sub-Report Files .................................................................. 579
Configuring Sub-Report Data Sources ..................................................... 580
Configuring Exporter Parameters ..................................................................... 580
22.12. Feed Views ................................................................................................. 581
22.13. JSON Mapping View .................................................................................... 581
22.14. XML Mapping View ...................................................................................... 582
23. Integrating with other web frameworks ....................................................................... 583
23.1. Introduction .................................................................................................... 583
23.2. Common configuration ................................................................................... 584
23.3. JavaServer Faces 1.2 .................................................................................... 585
SpringBeanFacesELResolver (JSF 1.2+) ......................................................... 585
FacesContextUtils ........................................................................................... 585
23.4. Apache Struts 2.x .......................................................................................... 585
23.5. Tapestry 5.x .................................................................................................. 586
23.6. Further Resources ......................................................................................... 586
24. Portlet MVC Framework ............................................................................................ 587
24.1. Introduction .................................................................................................... 587
Controllers - The C in MVC ............................................................................ 588
Views - The V in MVC .................................................................................... 588
Web-scoped beans ......................................................................................... 588
24.2. The DispatcherPortlet ..................................................................................... 588
24.3. The ViewRendererServlet ............................................................................... 590
24.4. Controllers ..................................................................................................... 591
AbstractController and PortletContentGenerator ............................................... 592
Other simple controllers .................................................................................. 593
Command Controllers ..................................................................................... 593
PortletWrappingController ................................................................................ 594
24.5. Handler mappings .......................................................................................... 594
PortletModeHandlerMapping ............................................................................ 595
ParameterHandlerMapping .............................................................................. 595
PortletModeParameterHandlerMapping ............................................................ 596
Adding HandlerInterceptors ............................................................................. 596
HandlerInterceptorAdapter ............................................................................... 597
ParameterMappingInterceptor .......................................................................... 597
24.6. Views and resolving them .............................................................................. 597
24.7. Multipart (file upload) support ......................................................................... 597
Using the PortletMultipartResolver ................................................................... 598