This is specified behavior.  Section JSP.4.2  of the
JSP 1.2 spec states for the property attribute of
<jsp:setProperty ...>:

The name of the Bean property whose value you want to set.
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.

Note the last sentence.

Cheers,
Larry

> -----Original Message-----
> From: Sipos Andras [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 09, 2002 5:54 AM
> To: [EMAIL PROTECTED]
> Subject: setProperty 
> 
> 
> Hi,
> 
> If  put a empty value via http GET parameter then it not call 
> the objects
> setter method
> 
> What is the problem?
> 
> Example:
> updater.jsp?val1=&val2=%val3=
> 
> in updater.jsp:
> <jsp:setProperty name="credit" property="*" />
> 
> MySystem:
> jdk1.3.1_02
> jakarta-tomcat-4.0.2
> win98.hu
> 
> 
> 
> 
> 
> -----------------------------------------
> This email was sent using SquirrelMail.
>    "Webmail for nuts!"
> http://squirrelmail.org/
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to