![](https://csdnimg.cn/release/download_crawler_static/11239608/bg14.jpg)
Spring Framework Reference Documentation
4.3.22.RELEASE Spring Framework xx
Configuration .................................................................................................. 595
Configuring the ViewResolver .................................................................. 596
Configuring the Views ............................................................................. 596
About Report Files .................................................................................. 596
Using JasperReportsMultiFormatView ...................................................... 596
Populating the ModelAndView ......................................................................... 597
Working with sub-reports ................................................................................ 598
Configuring sub-report files ..................................................................... 598
Configuring sub-report data sources ........................................................ 599
Configuring exporter parameters ..................................................................... 599
23.12. Feed views: RSS, Atom ............................................................................... 600
23.13. JSON Mapping View .................................................................................... 600
23.14. XML Mapping View ...................................................................................... 601
24. Integrating with other web frameworks ....................................................................... 602
24.1. Introduction .................................................................................................... 602
24.2. Common configuration ................................................................................... 603
24.3. JavaServer Faces 1.2 .................................................................................... 604
SpringBeanFacesELResolver (JSF 1.2+) ......................................................... 604
FacesContextUtils ........................................................................................... 604
24.4. Apache Struts 2.x .......................................................................................... 604
24.5. Tapestry 5.x .................................................................................................. 605
24.6. Further Resources ......................................................................................... 605
25. Portlet MVC Framework ............................................................................................ 606
25.1. Introduction .................................................................................................... 606
Controllers - The C in MVC ............................................................................ 607
Views - The V in MVC .................................................................................... 607
Web-scoped beans ......................................................................................... 607
25.2. The DispatcherPortlet ..................................................................................... 607
25.3. The ViewRendererServlet ............................................................................... 609
25.4. Controllers ..................................................................................................... 610
AbstractController and PortletContentGenerator ............................................... 611
Other simple controllers .................................................................................. 612
Command Controllers ..................................................................................... 612
PortletWrappingController ................................................................................ 613
25.5. Handler mappings .......................................................................................... 613
PortletModeHandlerMapping ............................................................................ 614
ParameterHandlerMapping .............................................................................. 614
PortletModeParameterHandlerMapping ............................................................ 615
Adding HandlerInterceptors ............................................................................. 615
HandlerInterceptorAdapter ............................................................................... 616
ParameterMappingInterceptor .......................................................................... 616
25.6. Views and resolving them .............................................................................. 616
25.7. Multipart (file upload) support ......................................................................... 616
Using the PortletMultipartResolver ................................................................... 617
Handling a file upload in a form ...................................................................... 617
25.8. Handling exceptions ....................................................................................... 621
25.9. Annotation-based controller configuration ........................................................ 621
Setting up the dispatcher for annotation support ............................................... 621
Defining a controller with @Controller .............................................................. 622
Mapping requests with @RequestMapping ....................................................... 622