Raible's Wiki
Raible Designs AppFuseHomepage- Korean - Chinese - Italian - Japanese QuickStart Guide User Guide Tutorials Other ApplicationsStruts ResumeSecurity Example Struts Menu
Set your name in
UserPreferences
Referenced by
JSPWiki v2.2.33
Hide Menu |
This is version 15.
It is not the current version, and thus it cannot be edited. JasperReport on AppFuse - Putting JasperReports to work on AppFuse.About this TutorialThis tutorial will show you how to add a Controller to generate reports from AppFuse user account database.Table of Contents
Create the UserReportController Controller [#1]One of the forms to call a report is to implement a new controller. We go to use one of the great characteristic that Spring MVC possess, the possibility of implement/extend one of existing controllers - one in special, MultiActionController. For that we will create the UserReportController controller, which will extends from MultiActionController controller:
Multi-ActionController resolves method names based on a method name resolver. The default method name resolver is InternalPathMethodNameResolver, which resolves method names based on URL patterns. But Spring comes with two other method name resolvers: ■ ParameterMethodNameResolver—Resolves the execution method name based on a parameter in the request ■ PropertiesMethodNameResolver—Resolves the name of the execution method by consulting a list of key/value pairs Regardless of which method name resolver you choose, you’ll need to wire it into the methodNameResolver property of the MultiActionController to override the default: Attachments:
|