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