[
https://issues.apache.org/struts/browse/STR-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict closed STR-1231.
------------------------------
Resolution: Won't Fix
Assignee: (was: Struts Developers)
If you're still using JDK 1.3, I am sorry to hear.
> [taglib] <html:select> multiple does not populate form bean under jdk1.3
> ------------------------------------------------------------------------
>
> Key: STR-1231
> URL: https://issues.apache.org/struts/browse/STR-1231
> Project: Struts 1
> Issue Type: Improvement
> Components: Core
> Affects Versions: Nightly Build
> Environment: Operating System: All
> Platform: PC
> Reporter: Luc Carpentier
> Priority: Minor
> Attachments: example.zip
>
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.