Perhaps this is a bug in the JRun implementation of the 1.0 spec then?

Your bean's set method should probably expect a string array as the
argument, by the sound of things.

Lance Lavandowska
Software Engineer
http://www.AgDomain.Com

-----Original Message-----
From: Richard Dallaway <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Monday, June 28, 1999 11:28 AM
Subject: Re: Re: Q: set bean param from -OPTION- list


>>From: "Lance Lavandowska" <[EMAIL PROTECTED]>
>
>>To get their individual values you'd have to
>>use request.getParameterValues("foo") which returns a String array.
>>Perhaps this is a problem with the implementation of <jsp:setProperty
...
>> > ?
>
>Thanks for those comments.
>
>The JSP 1.0 spec hints that the getParameterValues() thing might work.
"The
>usual Bean introspection is done to discover what properties are present,
>and, for each, its name, whether they are simple or indexed, their type,
and
>setter and getter methods." (Section 2.13.2, p. 61).  But I may be
missing a
>few tricks with "the usual bean introspection".
>
>My initial thoughts were that I could defined an index property, such as:
>
>public void setFoo(int index, String value)
>
>or even something like:
>
>public void setFoo(String[] values)
>
>..and expect jsp:setProperty to "do the right thing" and supply me with
>getParameterValues("foo").
>
>But this does not appear to work for me (JRun 2.3.3, Build 152, JDK 1.2).
>
>Thanks anyway
>Richard
>
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to