... and again - is anyone at least trying to fix this mailing list?
 
----- Original Message -----
Sent: Wednesday, August 22, 2001 2:26 PM
Subject: Fw: JSP Bean Introspection in Orion

Reposted..
 
----- Original Message -----
Sent: Monday, August 20, 2001 6:27 PM
Subject: JSP Bean Introspection in Orion

ORION: 1.5.2
OS: RedHat7.1
JAVA: Blackdown-1.3.1-FCS
REF: Tomcat3.2.1
 
We've been having a lot of discrepencies with bean introspection in Orion and I'd appreciate it if someone knows whether this is a development issue (for us) or an Orion bug.
 
Firstly we have a number of instances where there is a multi-select box with integer values.  These values (to my understanding) should be set as an int[] upon bean introspection.  Here is the code in the bean (TestBean.java):
 
    // integerArray
    private int[] integerArray;
   
    // integerArray setter
    public void setIntegerArray(int[] s)
    {
        System.out.println("Called the setIntegerArray int[] - CORRECT");
        this.integerArray = s;
    }
   
    // integerArray getter
    public int[] getIntegerArray()
    {
        System.out.println("Called getIntegerArray");
        return this.integerArray;
    }
 
And this is the JSP (test.jsp):
  
    <jsp:useBean class="com.rt.test.TestBean" id="test"/>   
    <jsp:setProperty name="test" property="*"/>
   
    <form method="GET" action="test.jsp">
        <select name="integerArray" multiple="true" size="4" style="width:200">
            <option value="1">Stuff1</option>
            <option value="2">Stuff2</option>
            <option value="3">Stuff3</option>
            <option value="4">Stuff4</option>
        </select>
   
        <input type="submit"/>
    </form>
 
Upon submission the bean methods are not called.  The same code in Tomcat3.2.1 does work.
 
We have also had a number of instances with a boolean value.  Instead of providing get and set methods we have used is and set.  I believe this is valid accoring to the spec.  Orion has also failed to call the set methods in a number of instances, however in a piece of test code i wrote - it did work.
 
Can anyone help me out with the spec / a detailed description of what and how Orion is doing introspection??
 
Thanks.
 
Richard.
 

Reply via email to