I have defined new DoubleConverter, but now I don't know how to define conversion in MyActionClass-conversion.properties file. I know how to define it for form fields, but how to define it for a link, like below:
<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> ? "prop" is Double. -- Thx, Milan Jeromy Evans - Blue Sky Minds wrote: > > Milan Milanovic wrote: >> Uf, bug again :-(((. >> >> Is there any custom type-converter for Double-s that doesn't have this >> error >> ? >> >> -- >> Milan >> > > A custom type-converter means you can write one yourself for that > specific property. It's very simple: > > http://struts.apache.org/2.0.11.2/docs/type-conversion.html > > Personally I never use Double in an action and instead opt for > BigDecimal to maintain precision correctly. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Double-conversion-issue-tp19092842p19144757.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]