Point taken. The assumption here is that you're doing a plain
"HttpServletRequest.getParameter()" check, which won't throw an exception.
In general, I would implement isFormSubmission so that it always falls back
to return false if it can't properly detect a form submission.
We can change isFormSubmission to declare an exception to be thrown, but
that will unfortunately affect overriding methods that call
"super.isFormSubmission". As a consequence, we can only do that for a new
major version. That said, I'm not sure whether it's worth the change in the
first place...
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf Of
Roberto Cosenza
Sent: Thursday, October 27, 2005 11:55 AM
To: spr...@li...
Subject: [Springframework-developer] Exception not declared in form
controllers
Is there any special reason why the following methods
protected boolean isFormSubmission(HttpServletRequest request) protected
boolean isFormChangeRequest(HttpServletRequest request) respectively in
AbstractFormController and in SimpleFormController, do not throw Exception?
Just using RequestUtils.getStringParameter requires a try catch block...
/Roberto
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free
Certification Exam for All Training Attendees Through End of 2005 Visit
http://www.jboss.com/services/certification for more information
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|