Spring Framework
4.0.0.RELEASE
Spring Framework
Reference Documentation xvi
Introduction .................................................................................................... 532
Configuration and setup .................................................................................. 532
Document view definitions ....................................................................... 532
Controller code ....................................................................................... 532
Subclassing for Excel views .................................................................... 532
Subclassing for PDF views ..................................................................... 534
17.7. JasperReports ............................................................................................... 534
Dependencies ................................................................................................ 534
Configuration .................................................................................................. 535
Configuring the ViewResolver .................................................................. 535
Configuring the Views ............................................................................. 535
About Report Files .................................................................................. 535
Using JasperReportsMultiFormatView ...................................................... 536
Populating the ModelAndView ......................................................................... 536
Working with Sub-Reports ............................................................................... 537
Configuring Sub-Report Files .................................................................. 537
Configuring Sub-Report Data Sources ..................................................... 538
Configuring Exporter Parameters ..................................................................... 538
17.8. Feed Views ................................................................................................... 539
17.9. XML Marshalling View .................................................................................... 540
17.10. JSON Mapping View .................................................................................... 540
18. Integrating with other web frameworks ....................................................................... 541
18.1. Introduction .................................................................................................... 541
18.2. Common configuration ................................................................................... 542
18.3. JavaServer Faces 1.2 .................................................................................... 543
SpringBeanFacesELResolver (JSF 1.2+) ......................................................... 543
FacesContextUtils ........................................................................................... 543
18.4. Apache Struts 2.x .......................................................................................... 544
18.5. Tapestry 5.x .................................................................................................. 544
18.6. Further Resources ......................................................................................... 544
19. Portlet MVC Framework ............................................................................................ 545
19.1. Introduction .................................................................................................... 545
Controllers - The C in MVC ............................................................................ 546
Views - The V in MVC .................................................................................... 546
Web-scoped beans ......................................................................................... 546
19.2. The DispatcherPortlet ..................................................................................... 546
19.3. The ViewRendererServlet ............................................................................... 548
19.4. Controllers ..................................................................................................... 549
AbstractController and PortletContentGenerator ............................................... 550
Other simple controllers .................................................................................. 551
Command Controllers ..................................................................................... 551
PortletWrappingController ................................................................................ 552
19.5. Handler mappings .......................................................................................... 552
PortletModeHandlerMapping ............................................................................ 553
ParameterHandlerMapping .............................................................................. 553
PortletModeParameterHandlerMapping ............................................................ 554
Adding HandlerInterceptors ............................................................................. 554
HandlerInterceptorAdapter ............................................................................... 555
ParameterMappingInterceptor .......................................................................... 555
19.6. Views and resolving them .............................................................................. 555