tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #158 has been filed.
Date Sat, 23 Sep 2000 08:37:47 GMT
Bug report #158 has just been filed.

You can view the report at the following URL:


REPORT #158 Details.

Project: Tomcat
Category: Feature Requests
SubCategory: Enhancement
Class: support
State: received
Priority: high
Severity: serious
Confidence: public
   Release: 3.1
   JVM Release: Sun 1.3
   Operating System: Windows 2000
   OS Release: Windows 2000 SP1
   Platform: Intel

Setting properties on a bean with jsp

JSP is supposed to automatically set a bean's properties from an http request (provided names
match) with this line of code: 
<jsp:setProperty name="theBeanAlias" property="*" /> 
but if the attribute's value on the request is "null" or "" the introspector method of the
JspRuntimeLibrary don't call the method on the bean!.
So if i have a attribute with "something" value and i wanna set it to "", i must reset the
value manually!!  
Very strange!!!
i prefer that the runtime engine calls always the method on the bean and if the argument is
mandatory, the methos throws an exception!

It doesn't work even with the specific property name 
<jsp:setProperty name="vBBean" property="myValue" /> 
(see the introspecthelper method).

Another problem with checkbox: if the checkbox is not checked, the request don't contains
the value and the runtime engine never call the bean's method with false!

View raw message