Author Login
Post Reply
user Digest 10 Feb 2010 02:25:08 -0000 Issue 9003
Topics (messages 204995 through 205000):
Re: JSON plugin ignoring includeProperties parameter
204995 by: Gadbury
What is the reason for this error? xwork interceptors seem to be misbehaving
204996 by: Saeed Iqbal
204997 by: Lukasz Lenart
Anybody Need Some Development Help?
204998 by: Saeed Iqbal
ognl can't handle converting from string to float?
204999 by: BlackKnight
205000 by: Cimballi
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_204995.ezm (zipped)
Hi new2struts,
Thank you very much for your time, investigation and explanation. This is
very useful to know.
All the best,
James.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_204996.ezm (zipped)
Attachment:
user_204997.ezm (zipped)2010/2/9 Saeed Iqbal <saeedcs@(protected)>:
>
java.lang.reflect.InvocationTargetExceptionMaybe you are trying access private or protected methods / fields of
your action.
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

Attachment:
user_204998.ezm (zipped)I am willing to work. I am in tight condition now. Any development work for
me please.
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204999.ezm (zipped)Hi,
Just curious,
Lib Version:
ognl 2.6.11/Struts2.1.6,
Initial setting:
I have a float variable utm1 in my java model class, the initial value
is set to to 0f,
Problem Desc:
when submitting the form, struts2 throw a error something like "can't
find the setter methods SetUtm1(String)".
Debug and trace info:
After the submitting, struts2 call ognl to set value of utm1, first ognl
look up for a converter to convert the para type(String) to the java
class type(Java.lang. float). However, there isn't any converter handle
such kind of convertion. So the ognl try to treat the para as a string
and apply the SetUtm1(String) methods.
Question:
Is it true that ognl didn't handle convertion from string to float? How
do you guys handle float variable in struts2 form?
Any comments? Thanks
Frank

Attachment:
user_205000.ezm (zipped)I have a working case with this declaration :
private Float latitude; and getXxx setXxx.
And in the JSP : <s:textfield key="latitude" />
Using Struts 2.1.8.1
Cimballi
2010/2/9 BlackKnight <wwwwar3com@(protected)>:
> Hi,
>
> Just curious,
>
> Lib Version:
> ognl 2.6.11/Struts2.1.6,
>
> Initial setting:
> I have a float variable utm1 in my java model class, the initial value
> is set to to 0f,
>
> Problem Desc:
> when submitting the form, struts2 throw a error something like "can't
> find the setter methods SetUtm1(String)".
>
> Debug and trace info:
> After the submitting, struts2 call ognl to set value of utm1, first ognl
> look up for a converter to convert the para type(String) to the java
> class type(Java.lang. float). However, there isn't any converter handle
> such kind of convertion. So the ognl try to treat the para as a string
> and apply the SetUtm1(String) methods.
>
> Question:
> Is it true that ognl didn't handle convertion from string to float? How
> do you guys handle float variable in struts2 form?
>
> Any comments? Thanks
>
>
> Frank
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>