I checked this with Firebug and in jsp, "prop" is O.K.:
...
#  Delete 
...

But, when user click on the link, in action class I get 12340.0 !!

--
Regards, Milan



Milan Milanovic wrote:
> 
> 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-tp19092842p19093011.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to