Re: Type converters: please help!!! :(

2008-01-31 Thread ravi_eze
M- - Original Message - From: ravi_eze [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, January 25, 2008 12:58 AM Subject: RE: Type converters: please help!!! :( Thank you Jeff for the reply. did u mean the *converter* attribute of the action tag that we give

Re: Type converters: please help!!! :(

2008-01-28 Thread Dave Newton
--- ravi_eze [EMAIL PROTECTED] wrote: public class newLongConverter extends StrutsTypeConverter { public Object convertFromString(Map context, String[] values, Class toClass) { if (null == values || values.length == 0 || values[0]==null || values[0].trim().length()==0 )

Re: Type converters: please help!!! :(

2008-01-28 Thread ravi_eze
StrutsTypeConverter class please M- - Original Message - From: ravi_eze [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, January 25, 2008 12:58 AM Subject: RE: Type converters: please help!!! :( Thank you Jeff for the reply. did u mean the *converter* attribute of the action tag

Re: Type converters: please help!!! :(

2008-01-27 Thread ravi_eze
- - Original Message - From: ravi_eze [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, January 25, 2008 12:58 AM Subject: RE: Type converters: please help!!! :( Thank you Jeff for the reply. did u mean the *converter* attribute of the action tag that we give in struts.xml? I

RE: Type converters: please help!!! :(

2008-01-24 Thread Jeff Hill (RR)
Ravi, From my understanding of OGNL, it *should* use the model object's conversion descriptor. It's probably more surprising that it called convertFromString without it. Are you using defaultStack? I believe providing the model object's descriptor is the correct approach, and you indicate that

RE: Type converters: please help!!! :(

2008-01-24 Thread ravi_eze
Thank you Jeff for the reply. did u mean the *converter* attribute of the action tag that we give in struts.xml? I didnt give any such attribute in it. I added ActionClass-conversion.properties: in which i mentioned the attribute to pickup a class which implements convertFromString and viceversa