You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/25 13:03:01 UTC
DO NOT REPLY [Bug 17368] New: -
html:select multiple does not populate form bean under jdk1.3
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17368>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17368
html:select multiple does not populate form bean under jdk1.3
Summary: html:select multiple does not populate form bean under
jdk1.3
Product: Struts
Version: Nightly Build
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Unknown
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: Luc.Carpentier@uniway.be
Hello,
I discovered that the struts1.1 nightly build I was using (jakarta-struts-
20030205.zip) does not populate the ActionForm indexed properties properly,
when you are using the JDK1.3 (I used jdk1.3.1_02).
The javabeans specification says that a javabean with an indexed propery can
have the methods:
- void setter(int index, PropertyType value)
- PropertyType getter(int index)
- void setter( PropertyType value[] )
- PropertyType[] getter()
I defined an ActionForm bean with the three last signatures for my indexed
property and concluded the following:
- This does work under the conbination struts1.0 / JDK1.3
- This does work under the conbination struts1.1(nightly) / JDK1.4 (i used
jdk1.4.0_03)
- This does NOT work under the conbination struts1.1(nightly) / JDK1.3
In the last case, the ActionForm did not get populated with the selected values
anymore. I simply switched the JAVA_HOME variable to test it under the two
different JDK's (with tomcat versions 4.01,4.03 and 4.1.18).
All tomcat versions had the same result.
If I removed the getter method:
- PropertyType getter(int index)
all works fine. So why doesn't this method work properly under the conbination
struts1.1 / jdk1.3? All other conbinations work fine. This behaviour is so
strange I don't even know where to report this (JDK bug? struts bug? commons
beanutils bug?).
If you want a simple test application for this, i have one. So mail me if you
want me to send it to you.
Greetings,
Luc Carpentier
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org