Yes I tried the following 

<s:select
       name="testForm.inputAnswer[0]"
       list="#session.question.answers"
       listKey="answer"
       listValue="answer"
       />

but it doesnt work, also I gave multiple="true" that
also doenst work.

Thanks

--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:

> tom tom wrote:
> > I have the following in the jsp
> >
> > <s:select
> >                    name="testForm.inputAnswer"
> >                    list="#session.question.answers"
> >                    listKey="answer"
> >                    listValue="answer"
> >                    />
> >   
> 
> You're trying to assign a String to an array which
> would give you an 
> error if you were trying to do it in code. If you
> want the equivalent of 
> S1 functionality, you'll need to address the first
> element of the array. 
> I'm not 100% sure this will work as addressing array
> elements in OGNL 
> used to be problematic, but in theory you need this:
> 
> <s:select
>        name="testForm.inputAnswer[0]"
>        list="#session.question.answers"
>        listKey="answer"
>        listValue="answer"
>        />
> 
> The actual notation may require some escaping around
> the [0]. 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



       
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to