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
--- 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 )
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
-
- 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
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
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
6 matches
Mail list logo