commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Licota" <>
Subject OGNL expression offset
Date Tue, 16 Dec 2014 23:05:04 GMT
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

<s:iterator value="questions" var="question" status="rowstatus">
	<p><s:property value="id" /></p>
		<s:radio name="test['%{id}']" list="#{'1':''}" />
		<s:radio name="test['%{id}']" list="#{'2':''}" />
		<s:radio name="test['%{id}']" list="#{'3':''}" />

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:
For additional commands, e-mail:

View raw message