You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/09/23 10:37:47 UTC

BugRat Report #158 has been filed.

Bug report #158 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/158>

REPORT #158 Details.

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

Synopsis: 
Setting properties on a bean with jsp

Description:
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!

RE: BugRat Report #158 has been filed.

Posted by "Rob S." <rs...@home.com>.
> 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!.

I thought this was the JSP standard?

- r