You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Olivier Boulanger <Bo...@Lucid-it.com> on 2002/03/12 12:19:19 UTC

[JSP/JAVABEANS] set method and empty parameters...

Hi all,

I send some values of a html form (using post method) to a JSP page, which
calls a JavaBean to actualize its properties (<jsp:setProperty name="myBean"
property="*"/>).

But when a field of the form is null (empty string in the form), the "set"
method of the bean is not executed.

Ex : in the form, the value of the field "toto" is changed from "aaa" to
null : the setToto method of the bean is not called, and the value of the
toto property is not actualized...

A solution would really be appreciate :-)

Many thanks,

Olivier



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>