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