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]

Reply via email to