dcsimg
<jsp:setProperty name="referralBean" property="*"/> syntax to submit blank form elements
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kiran_K
Posted On:   Friday, June 8, 2001 09:15 AM

I see the following specification for JSPs:



If you set propertyName to * then the tag will iterate over the current ServletRequest parameters, matching parameter names and value type(s) to property names and setter method type(s), setting each matched property to the value of the matching parameter. If a parameter has a value of ““, the corresponding property is not modified.


Is there any reason why the last line is so ? If a user blanks out a field the value still remains in the bean. Setting values for int or any data type other than string will result in error. Shouldn't it be enabled for strings ???
Any thoughts on this ?

About | Sitemap | Contact