Java Doc for SimpleFormController.java in  » J2EE » spring-framework-2.0.6 » org » springframework » web » servlet » mvc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.0.6 » org.springframework.web.servlet.mvc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.web.servlet.mvc.AbstractController
   org.springframework.web.servlet.mvc.BaseCommandController
      org.springframework.web.servlet.mvc.AbstractFormController
         org.springframework.web.servlet.mvc.SimpleFormController

All known Subclasses:   org.springframework.web.servlet.mvc.CancellableFormController,
SimpleFormController
public class SimpleFormController extends AbstractFormController (Code)

Concrete FormController implementation that provides configurable form and success views, and an onSubmit chain for convenient overriding. Automatically resubmits to the form view in case of validation errors, and renders the success view in case of a valid submission.

The workflow of this Controller does not differ much from the one described in the AbstractFormController AbstractFormController . The difference is that you do not need to implement SimpleFormController.showForm showForm and SimpleFormController.processFormSubmission processFormSubmission : A form view and a success view can be configured declaratively.

Workflow (in addition to the superclass):

  1. Call to SimpleFormController.processFormSubmission processFormSubmission which inspects the org.springframework.validation.Errors Errors object to see if any errors have occurred during binding and validation.
  2. If errors occured, the controller will return the configured formView, showing the form again (possibly rendering according error messages).
  3. If SimpleFormController.isFormChangeRequest isFormChangeRequest is overridden and returns true for the given request, the controller will return the formView too. In that case, the controller will also suppress validation. Before returning the formView, the controller will invoke SimpleFormController.onFormChange , giving sub-classes a chance to make modification to the command object. This is intended for requests that change the structure of the form, which should not cause validation and show the form in any case.
  4. If no errors occurred, the controller will call SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) onSubmit using all parameters, which in case of the default implementation delegates to SimpleFormController.onSubmit(Object,BindException) onSubmit with just the command object. The default implementation of the latter method will return the configured successView. Consider implementing SimpleFormController.doSubmitAction doSubmitAction for simply performing a submit action and rendering the success view.

The submit behavior can be customized by overriding one of the SimpleFormController.onSubmit onSubmit methods. Submit actions can also perform custom validation if necessary (typically database-driven checks), calling SimpleFormController.showForm(HttpServletRequest,HttpServletResponse,BindException) showForm in case of validation errors to show the form view again.

Exposed configuration properties (and those defined by superclass):
name default description
formView null Indicates what view to use when the user asks for a new form or when validation errors have occurred on form submission.
successView null Indicates what view to use when successful form submissions have occurred. Such a success view could e.g. display a submission summary. More sophisticated actions can be implemented by overriding one of the SimpleFormController.onSubmit(Object) onSubmit() methods.


author:
   Juergen Hoeller
author:
   Rob Harrop
since:
   05.05.2003



Constructor Summary
public  SimpleFormController()
     Create a new SimpleFormController.

Subclasses should set the following properties, either in the constructor or via a BeanFactory: commandName, commandClass, sessionForm, formView, successView.


Method Summary
protected  voiddoSubmitAction(Object command)
     Template method for submit actions.
final public  StringgetFormView()
     Return the name of the view that should be used for form display.
final public  StringgetSuccessView()
     Return the name of the view that should be shown on successful submit.
protected  booleanisFormChangeRequest(HttpServletRequest request, Object command)
     Determine whether the given request is a form change request.
protected  booleanisFormChangeRequest(HttpServletRequest request)
     Simpler isFormChangeRequest variant, called by the full variant SimpleFormController.isFormChangeRequest(HttpServletRequest,Object) .
protected  voidonFormChange(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
     Called during form submission if SimpleFormController.isFormChangeRequest(javax.servlet.http.HttpServletRequest) returns true.
protected  voidonFormChange(HttpServletRequest request, HttpServletResponse response, Object command)
     Simpler onFormChange variant, called by the full variant SimpleFormController.onFormChange(HttpServletRequest,HttpServletResponse,Object,BindException) .
protected  ModelAndViewonSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
     Submit callback with all parameters.
protected  ModelAndViewonSubmit(Object command, BindException errors)
     Simpler onSubmit variant. Called by the default implementation of the SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) variant with all parameters.

The default implementation calls SimpleFormController.onSubmit(Object) , using the returned ModelAndView if actually implemented in a subclass.

protected  ModelAndViewonSubmit(Object command)
     Simplest onSubmit variant.
protected  ModelAndViewprocessFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
     This implementation calls SimpleFormController.showForm(HttpServletRequest,HttpServletResponse,BindException) in case of errors, and delegates to the full SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) 's variant else.

This can only be overridden to check for an action that should be executed without respect to binding errors, like a cancel action.

protected  MapreferenceData(HttpServletRequest request, Object command, Errors errors)
     Create a reference data map for the given request and command, consisting of bean name/bean instance pairs as expected by ModelAndView.
protected  MapreferenceData(HttpServletRequest request)
     Create a reference data map for the given request.
final public  voidsetFormView(String formView)
     Set the name of the view that should be used for form display.
final public  voidsetSuccessView(String successView)
     Set the name of the view that should be shown on successful submit.
protected  ModelAndViewshowForm(HttpServletRequest request, HttpServletResponse response, BindException errors)
     This implementation shows the configured form view, delegating to the analogous SimpleFormController.showForm(HttpServletRequest,HttpServletResponse,BindException,Map) variant with a "controlModel" argument.
protected  ModelAndViewshowForm(HttpServletRequest request, HttpServletResponse response, BindException errors, Map controlModel)
     This implementation shows the configured form view.

Can be called within SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) implementations, to redirect back to the form in case of custom validation errors (errors not determined by the validator).

Can be overridden in subclasses to show a custom view, writing directly to the response or preparing the response before rendering a view.
Parameters:
  request - current HTTP request
Parameters:
  errors - validation errors holder
Parameters:
  controlModel - model map containing controller-specific control data(e.g.

protected  booleansuppressValidation(HttpServletRequest request, Object command)
     This implementation delegates to SimpleFormController.isFormChangeRequest(HttpServletRequest,Object) : A form change request changes the appearance of the form and should not get validated but just show the new form.


Constructor Detail
SimpleFormController
public SimpleFormController()(Code)
Create a new SimpleFormController.

Subclasses should set the following properties, either in the constructor or via a BeanFactory: commandName, commandClass, sessionForm, formView, successView. Note that commandClass doesn't need to be set when overriding formBackingObject, as this determines the class anyway.
See Also:   SimpleFormController.setCommandClass
See Also:   SimpleFormController.setCommandName
See Also:   SimpleFormController.setSessionForm
See Also:   SimpleFormController.setFormView
See Also:   SimpleFormController.setSuccessView
See Also:   SimpleFormController.formBackingObject





Method Detail
doSubmitAction
protected void doSubmitAction(Object command) throws Exception(Code)
Template method for submit actions. Called by the default implementation of the simplest SimpleFormController.onSubmit(Object) variant.

This is the preferred submit callback to implement if you want to perform an action (like storing changes to the database) and then render the success view with the command and Errors instance as model. You don't need to care about the success ModelAndView here.
Parameters:
  command - form object with request parameters bound onto it
throws:
  Exception - in case of errors
See Also:   SimpleFormController.onSubmit(Object)
See Also:   SimpleFormController.setSuccessView




getFormView
final public String getFormView()(Code)
Return the name of the view that should be used for form display.



getSuccessView
final public String getSuccessView()(Code)
Return the name of the view that should be shown on successful submit.



isFormChangeRequest
protected boolean isFormChangeRequest(HttpServletRequest request, Object command)(Code)
Determine whether the given request is a form change request. A form change request changes the appearance of the form and should always show the new form, without validation.

Gets called by SimpleFormController.suppressValidation and SimpleFormController.processFormSubmission . Consequently, this single method determines to suppress validation and to show the form view in any case.

The default implementation delegates to SimpleFormController.isFormChangeRequest(javax.servlet.http.HttpServletRequest) .
Parameters:
  request - current HTTP request
Parameters:
  command - form object with request parameters bound onto it whether the given request is a form change request
See Also:   SimpleFormController.suppressValidation
See Also:   SimpleFormController.processFormSubmission




isFormChangeRequest
protected boolean isFormChangeRequest(HttpServletRequest request)(Code)
Simpler isFormChangeRequest variant, called by the full variant SimpleFormController.isFormChangeRequest(HttpServletRequest,Object) .

The default implementation is empty.
Parameters:
  request - current HTTP request whether the given request is a form change request
See Also:   SimpleFormController.suppressValidation
See Also:   SimpleFormController.processFormSubmission




onFormChange
protected void onFormChange(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception(Code)
Called during form submission if SimpleFormController.isFormChangeRequest(javax.servlet.http.HttpServletRequest) returns true. Allows subclasses to implement custom logic to modify the command object to directly modify data in the form.

The default implementation delegates to SimpleFormController.onFormChange(HttpServletRequest,HttpServletResponse,Object,BindException) .
Parameters:
  request - current servlet request
Parameters:
  response - current servlet response
Parameters:
  command - form object with request parameters bound onto it
Parameters:
  errors - validation errors holder, allowing for additionalcustom validation
throws:
  Exception - in case of errors
See Also:   SimpleFormController.isFormChangeRequest(HttpServletRequest)
See Also:   SimpleFormController.onFormChange(HttpServletRequest,HttpServletResponse,Object)




onFormChange
protected void onFormChange(HttpServletRequest request, HttpServletResponse response, Object command) throws Exception(Code)
Simpler onFormChange variant, called by the full variant SimpleFormController.onFormChange(HttpServletRequest,HttpServletResponse,Object,BindException) .

The default implementation is empty.
Parameters:
  request - current servlet request
Parameters:
  response - current servlet response
Parameters:
  command - form object with request parameters bound onto it
throws:
  Exception - in case of errors
See Also:   SimpleFormController.onFormChange(HttpServletRequest,HttpServletResponse,Object,BindException)




onSubmit
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception(Code)
Submit callback with all parameters. Called in case of submit without errors reported by the registered validator, or on every submit if no validator.

The default implementation delegates to SimpleFormController.onSubmit(Object,BindException) . For simply performing a submit action and rendering the specified success view, consider implementing SimpleFormController.doSubmitAction rather than an onSubmit variant.

Subclasses can override this to provide custom submission handling like storing the object to the database. Implementations can also perform custom validation and call showForm to return to the form. Do not implement multiple onSubmit methods: In that case, just this method will be called by the controller.

Call errors.getModel() to populate the ModelAndView model with the command and the Errors instance, under the specified command name, as expected by the "spring:bind" tag.
Parameters:
  request - current servlet request
Parameters:
  response - current servlet response
Parameters:
  command - form object with request parameters bound onto it
Parameters:
  errors - Errors instance without errors (subclass can add errors if it wants to) the prepared model and view, or null
throws:
  Exception - in case of errors
See Also:   SimpleFormController.onSubmit(Object,BindException)
See Also:   SimpleFormController.doSubmitAction
See Also:   SimpleFormController.showForm
See Also:   org.springframework.validation.Errors
See Also:   org.springframework.validation.BindException.getModel




onSubmit
protected ModelAndView onSubmit(Object command, BindException errors) throws Exception(Code)
Simpler onSubmit variant. Called by the default implementation of the SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) variant with all parameters.

The default implementation calls SimpleFormController.onSubmit(Object) , using the returned ModelAndView if actually implemented in a subclass. Else, the default behavior will apply: rendering the success view with the command and Errors instance as model.

Subclasses can override this to provide custom submission handling that does not need request and response.

Call errors.getModel() to populate the ModelAndView model with the command and the Errors instance, under the specified command name, as expected by the "spring:bind" tag.
Parameters:
  command - form object with request parameters bound onto it
Parameters:
  errors - Errors instance without errors the prepared model and view
throws:
  Exception - in case of errors
See Also:   SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException)
See Also:   SimpleFormController.onSubmit(Object)
See Also:   SimpleFormController.setSuccessView
See Also:   org.springframework.validation.Errors
See Also:   org.springframework.validation.BindException.getModel




onSubmit
protected ModelAndView onSubmit(Object command) throws Exception(Code)
Simplest onSubmit variant. Called by the default implementation of the SimpleFormController.onSubmit(Object,BindException) variant.

This implementation calls SimpleFormController.doSubmitAction(Object) and returns null as ModelAndView, making the calling onSubmit method perform its default rendering of the success view.

Subclasses can override this to provide custom submission handling that just depends on the command object. It's preferable to use either SimpleFormController.onSubmit(Object,BindException) or SimpleFormController.doSubmitAction(Object) , though: Use the former when you want to build your own ModelAndView; use the latter when you want to perform an action and forward to the successView.
Parameters:
  command - form object with request parameters bound onto it the prepared model and view, or null for default(that is, rendering the configured "successView")
throws:
  Exception - in case of errors
See Also:   SimpleFormController.onSubmit(Object,BindException)
See Also:   SimpleFormController.doSubmitAction
See Also:   SimpleFormController.setSuccessView




processFormSubmission
protected ModelAndView processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception(Code)
This implementation calls SimpleFormController.showForm(HttpServletRequest,HttpServletResponse,BindException) in case of errors, and delegates to the full SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) 's variant else.

This can only be overridden to check for an action that should be executed without respect to binding errors, like a cancel action. To just handle successful submissions without binding errors, override one of the onSubmit methods or SimpleFormController.doSubmitAction .
See Also:   SimpleFormController.showForm(HttpServletRequest,HttpServletResponse,BindException)
See Also:   SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException)
See Also:   SimpleFormController.onSubmit(Object,BindException)
See Also:   SimpleFormController.onSubmit(Object)
See Also:   SimpleFormController.doSubmitAction(Object)




referenceData
protected Map referenceData(HttpServletRequest request, Object command, Errors errors) throws Exception(Code)
Create a reference data map for the given request and command, consisting of bean name/bean instance pairs as expected by ModelAndView.

The default implementation delegates to SimpleFormController.referenceData(HttpServletRequest) . Subclasses can override this to set reference data used in the view.
Parameters:
  request - current HTTP request
Parameters:
  command - form object with request parameters bound onto it
Parameters:
  errors - validation errors holder a Map with reference data entries, or null if none
throws:
  Exception - in case of invalid state or arguments
See Also:   ModelAndView




referenceData
protected Map referenceData(HttpServletRequest request) throws Exception(Code)
Create a reference data map for the given request. Called by the SimpleFormController.referenceData(HttpServletRequest,Object,Errors) variant with all parameters.

The default implementation returns null. Subclasses can override this to set reference data used in the view.
Parameters:
  request - current HTTP request a Map with reference data entries, or null if none
throws:
  Exception - in case of invalid state or arguments
See Also:   SimpleFormController.referenceData(HttpServletRequest,Object,Errors)
See Also:   ModelAndView




setFormView
final public void setFormView(String formView)(Code)
Set the name of the view that should be used for form display.



setSuccessView
final public void setSuccessView(String successView)(Code)
Set the name of the view that should be shown on successful submit.



showForm
protected ModelAndView showForm(HttpServletRequest request, HttpServletResponse response, BindException errors) throws Exception(Code)
This implementation shows the configured form view, delegating to the analogous SimpleFormController.showForm(HttpServletRequest,HttpServletResponse,BindException,Map) variant with a "controlModel" argument.

Can be called within SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) implementations, to redirect back to the form in case of custom validation errors (errors not determined by the validator).

Can be overridden in subclasses to show a custom view, writing directly to the response or preparing the response before rendering a view.

If calling showForm with a custom control model in subclasses, it's preferable to override the analogous showForm version with a controlModel argument (which will handle both standard form showing and custom form showing then).
See Also:   SimpleFormController.setFormView
See Also:   SimpleFormController.showForm(HttpServletRequest,HttpServletResponse,BindException,Map)




showForm
protected ModelAndView showForm(HttpServletRequest request, HttpServletResponse response, BindException errors, Map controlModel) throws Exception(Code)
This implementation shows the configured form view.

Can be called within SimpleFormController.onSubmit(HttpServletRequest,HttpServletResponse,Object,BindException) implementations, to redirect back to the form in case of custom validation errors (errors not determined by the validator).

Can be overridden in subclasses to show a custom view, writing directly to the response or preparing the response before rendering a view.
Parameters:
  request - current HTTP request
Parameters:
  errors - validation errors holder
Parameters:
  controlModel - model map containing controller-specific control data(e.g. current page in wizard-style controllers or special error message) the prepared form view
throws:
  Exception - in case of invalid state or arguments
See Also:   SimpleFormController.setFormView




suppressValidation
protected boolean suppressValidation(HttpServletRequest request, Object command)(Code)
This implementation delegates to SimpleFormController.isFormChangeRequest(HttpServletRequest,Object) : A form change request changes the appearance of the form and should not get validated but just show the new form.
See Also:   SimpleFormController.isFormChangeRequest



Methods inherited from org.springframework.web.servlet.mvc.AbstractFormController
protected Object currentFormObject(HttpServletRequest request, Object sessionFormObject) throws Exception(Code)(Java Doc)
protected Object formBackingObject(HttpServletRequest request) throws Exception(Code)(Java Doc)
final protected Object getCommand(HttpServletRequest request) throws Exception(Code)(Java Doc)
final protected BindException getErrorsForNewForm(HttpServletRequest request) throws Exception(Code)(Java Doc)
protected String getFormSessionAttributeName(HttpServletRequest request)(Code)(Java Doc)
protected String getFormSessionAttributeName()(Code)(Java Doc)
protected ModelAndView handleInvalidSubmit(HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
final public boolean isBindOnNewForm()(Code)(Java Doc)
protected boolean isFormSubmission(HttpServletRequest request)(Code)(Java Doc)
final public boolean isSessionForm()(Code)(Java Doc)
protected void onBindOnNewForm(HttpServletRequest request, Object command, BindException errors) throws Exception(Code)(Java Doc)
protected void onBindOnNewForm(HttpServletRequest request, Object command) throws Exception(Code)(Java Doc)
abstract protected ModelAndView processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception(Code)(Java Doc)
protected Map referenceData(HttpServletRequest request, Object command, Errors errors) throws Exception(Code)(Java Doc)
final public void setBindOnNewForm(boolean bindOnNewForm)(Code)(Java Doc)
final public void setSessionForm(boolean sessionForm)(Code)(Java Doc)
abstract protected ModelAndView showForm(HttpServletRequest request, HttpServletResponse response, BindException errors) throws Exception(Code)(Java Doc)
final protected ModelAndView showForm(HttpServletRequest request, BindException errors, String viewName) throws Exception(Code)(Java Doc)
final protected ModelAndView showForm(HttpServletRequest request, BindException errors, String viewName, Map controlModel) throws Exception(Code)(Java Doc)
final protected ModelAndView showNewForm(HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)

Fields inherited from org.springframework.web.servlet.mvc.BaseCommandController
final public static String DEFAULT_COMMAND_NAME(Code)(Java Doc)

Methods inherited from org.springframework.web.servlet.mvc.BaseCommandController
final protected ServletRequestDataBinder bindAndValidate(HttpServletRequest request, Object command) throws Exception(Code)(Java Doc)
final protected boolean checkCommand(Object command)(Code)(Java Doc)
protected ServletRequestDataBinder createBinder(HttpServletRequest request, Object command) throws Exception(Code)(Java Doc)
final protected Object createCommand() throws Exception(Code)(Java Doc)
final public BindingErrorProcessor getBindingErrorProcessor()(Code)(Java Doc)
protected Object getCommand(HttpServletRequest request) throws Exception(Code)(Java Doc)
final public Class getCommandClass()(Code)(Java Doc)
final public String getCommandName()(Code)(Java Doc)
final public MessageCodesResolver getMessageCodesResolver()(Code)(Java Doc)
final public PropertyEditorRegistrar[] getPropertyEditorRegistrars()(Code)(Java Doc)
final public Validator getValidator()(Code)(Java Doc)
final public Validator[] getValidators()(Code)(Java Doc)
protected void initApplicationContext()(Code)(Java Doc)
protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception(Code)(Java Doc)
final public boolean isValidateOnBinding()(Code)(Java Doc)
protected void onBind(HttpServletRequest request, Object command, BindException errors) throws Exception(Code)(Java Doc)
protected void onBind(HttpServletRequest request, Object command) throws Exception(Code)(Java Doc)
protected void onBindAndValidate(HttpServletRequest request, Object command, BindException errors) throws Exception(Code)(Java Doc)
final protected void prepareBinder(ServletRequestDataBinder binder)(Code)(Java Doc)
final public void setBindingErrorProcessor(BindingErrorProcessor bindingErrorProcessor)(Code)(Java Doc)
final public void setCommandClass(Class commandClass)(Code)(Java Doc)
final public void setCommandName(String commandName)(Code)(Java Doc)
final public void setMessageCodesResolver(MessageCodesResolver messageCodesResolver)(Code)(Java Doc)
final public void setPropertyEditorRegistrar(PropertyEditorRegistrar propertyEditorRegistrar)(Code)(Java Doc)
final public void setPropertyEditorRegistrars(PropertyEditorRegistrar[] propertyEditorRegistrars)(Code)(Java Doc)
final public void setValidateOnBinding(boolean validateOnBinding)(Code)(Java Doc)
final public void setValidator(Validator validator)(Code)(Java Doc)
final public void setValidators(Validator[] validators)(Code)(Java Doc)
protected boolean suppressBinding(HttpServletRequest request)(Code)(Java Doc)
protected boolean suppressValidation(HttpServletRequest request, Object command, BindException errors)(Code)(Java Doc)
protected boolean suppressValidation(HttpServletRequest request, Object command)(Code)(Java Doc)
protected boolean suppressValidation(HttpServletRequest request)(Code)(Java Doc)
protected boolean useDirectFieldAccess()(Code)(Java Doc)

Methods inherited from org.springframework.web.servlet.mvc.AbstractController
final public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
abstract protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
final public boolean isSynchronizeOnSession()(Code)(Java Doc)
final public void setSynchronizeOnSession(boolean synchronizeOnSession)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.