Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

struts-hibernate-mysql date problem

hardik_982

2008-08-22

Replies: Find Java Web Hosting

Author LoginPost Reply

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

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.