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