struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardik Shah <hardik_...@yahoo.com>
Subject struts-hibernate-mysql date problem
Date Fri, 22 Aug 2008 10:31:30 GMT

hi
i am using hibernate 3 with s2 my problem is that

im mysql table i have field of date type 

so i have set type date  in hb mapping.xml and in pojo(if i am set as string
in pojo and mapping file it gives error )

now i have to set date  in input  as format mm/dd/yy so mysql accepts it
automatically and convert in its foramt type(YY-dd-mm)  otherwise it return
to input result

but i want to show it as dd/mm/yy ,what i have to do for this any convertor
of s2 apply or what?

please help to solve this problem


-----


Java/J2EE developer 
India

blogs
http://hardik4u.wordpress.com wordpress blog 

-- 
View this message in context: http://www.nabble.com/struts-hibernate-mysql-date-problem-tp19104863p19104863.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message