struts-user mailing list archives

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

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 

blogs wordpress blog 

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message