struts-user mailing list archives

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


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:a id="a_%{prop}" href="%{removeUrl}" theme="ajax" notifyTopics="/delete"

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:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message