tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André de Jesus <an...@tektix.com>
Subject Tomcat 4.0 weirdness setting bean properties from checkboxes
Date Tue, 02 Oct 2001 12:31:03 GMT
Hi

The following JSP directive:

<jsp:setProperty name="reg" property="*" />

is supposed to work for any CGI parameter coming form an HTML form.

But with HTML form checkboxes, even if the bean function that receives 
the values checks for null or "on", the resulting bean value corresponds 
always to the "true" state. This makes it necessary for a line like this:

reg.setMailShow(request.getParameter("mailShow"));

to be appended in the JSP to explicitly set the value, which would be 
unnecessary if the jsp:setProperty was working correctly.

Is there some way to consistently have a bean function set the value 
correctly?


Thank you

Andre de Jesus



Mime
View raw message