-
Aug 28th, 2009, 11:04 PM
#1
SimpleFormController
When to use SimpleFormController in our Application?
When to use AbstractController in our Application?..
which method is overriden by SimpleFormController
-
Aug 29th, 2009, 06:14 AM
#2
"The AbstractController is well suited for web resources that return dynamic information but don’t
respond to input.
The org.springframework.web.servlet.mvc.SimpleFormCont roller is a very powerful
Controller responsible for handling the entire life cycle of HTML form interaction. This
Controller manages and coordinates viewing the form, through validation, and finally to
handling the submission. If your page or resource does not have to handle any form submits,
you can move up the class hierarchy to use a simpler controller such as AbstractController.
If you need to display a form and handle its submission, then this is the Controller for you." - Expert Spring MVC and Web Flow
From the 2.5 API: http://static.springsource.org/sprin...ontroller.html
protected Map referenceData(javax.portlet.PortletRequest request, Object command, Errors errors) throws Exception
overrides referenceData in class AbstractFormController
protected boolean suppressValidation(javax.portlet.PortletRequest request)
overrides suppressValidation in class BaseCommandController
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules