I also submitted an email yesterday related to type conversion and your
observation below was very helpful.  The fact that your case 2 doesn't
work also describes my problem (submitted as "interceptor and converter
cycle").

For now I guess I'll go with case 1 at the Action class level in order
to achieve validation, and set the date on my user object separately.

Unfortunately I cannot explain why case 2 doesn't work, although I wish
it did.

Thanks a bunch,
Andrew 

-----Original Message-----
From: jignesh(india) [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 02, 2007 3:05 AM
To: user@struts.apache.org
Subject: Struts Type Conversion Problem


Hello,
    I have read your conversion here,
    I am having a strange problem in my converter.

     case 1:-
    JSP
    <s:textfield name="myDate"/>

    classname-conversion.properties
    myDate = tutorial.MyTypeConverter
   
    case 2:-
    JSP
    <s:textfield name="user.myDate"/>

    classname-conversion.properties
    user.myDate = tutorial.MyTypeConverter
   
Now the problem here is that if i use case 1 i am successfully able to
call the convertToString(Map arg0, Object arg1) but in case 2 i am not
able to call convertToString(Map arg0, Object arg1). 

Can anybody understand me ?

Thanks in advanced.
--
View this message in context:
http://www.nabble.com/Struts-Type-Conversion-Problem-tf4735856.html#a135
43074
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