Hi there,
I'm sorry if it's a dumb question but I'm having a really hard time figuring
out what I'm doing wrong here.
I'm using OGNL 3.0.6 in a struts2 project and I get a constant offset in the
value that I should get from the ognl expression.
One of my .jsp is iterating over a List(questions) of objects(question) to
print radio buttons. When I submit a selected radio button, it maps either 1, 2
or 3 with the key question.id
<s:iterator value="questions" var="question" status="rowstatus">
<p><s:property value="id" /></p>
<p>
<s:radio name="test['%{id}']" list="#{'1':''}" />
<s:radio name="test['%{id}']" list="#{'2':''}" />
<s:radio name="test['%{id}']" list="#{'3':''}" />
</p>
</s:iterator>
Everything works except that the id I get from the OGNL EL is offset by 48
everytime... (e.g if the tag <s:property value="id" /> shows 5, I get 53 in my
map key).
If someone could help me I would be really grateful.
Thanks :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]