struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <milanmilanov...@yahoo.com>
Subject [S2] Double conversion issue
Date Thu, 21 Aug 2008 17:00:20 GMT

Hi,

I have this code in my jsp:

<s:iterator value="someObject" status="rowstatus">
...
<s:url id="removeUrl" action="remove">
    <s:param name="prop" value="prop" />
</s:url>
<s:a id="a_%{prop}" href="%{removeUrl}" theme="ajax" notifyTopics="/delete"
targets="fruits">Delete</s:a>
...
</s:iterator>

This "remove.action" is mapped into remove() method in my action class, and
"prop" is a double property with get/set methods in my action class.

What happens now, when user enter, e.g. 1234.0 for "prop", it is well
represented here, e.g. "prop" value is 1234.0 in jsp and my list in action
class, but when user click on the link above to delete it, in my action
class remove() method for "prop" I get: 12340.0 ! Zero is always added at
end of the number, does anyone know why this could happen ?

--
Regards, Milan
-- 
View this message in context: http://www.nabble.com/-S2--Double-conversion-issue-tp19092842p19092842.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message