Struts 2 + dates

2010-06-08 Thread lucas owen
Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate}

Re: Struts 2 + dates

2010-06-08 Thread Daniel S. Teixeira
Hi Lucas, You can use some component based on jQuery to format your date and edit as well. See here: http://digitalbush.com/projects/masked-input-plugin/ I use this component on my project. Piece of cake! Regards, Daniel S. Teixeira danso...@gmail.com On Tue, Jun 8, 2010 at 2:39 PM, lucas

Re: Struts 2 + dates

2010-06-08 Thread Ken
http://struts.apache.org/2.1.8.1/docs/tag-reference.html See: The datetimepicker tag... you can specify the date format very easily and it provides nice edit functionality. On Tue, 2010-06-08 at 19:39 +0200, lucas owen wrote: Hi Struts users! I need to present a java.util.Date in a jsp.

Re: Struts 2 + dates

2010-06-08 Thread Daniel S. Teixeira
Suggestion better than mine! :) Regards, Daniel S. Teixeira danso...@gmail.com On Tue, Jun 8, 2010 at 3:50 PM, Ken ken.mcwilli...@aerose.com wrote: http://struts.apache.org/2.1.8.1/docs/tag-reference.html See: The datetimepicker tag... you can specify the date format very easily and it

Re: Struts 2 + dates

2010-06-08 Thread sandeep kotha
I agree with ken simple best thing to do %@ taglib prefix=sx uri=/struts-dojo-tags% sx:head / sx:datetimepicker key=bean.date displayFormat=dd/MM//. On 8 June 2010 23:09, lucas owen sr.ilus...@gmail.com wrote: Hi Struts users! I need to present a java.util.Date in a jsp. It has to be

Re: Struts 2 + dates

2010-06-08 Thread lucas owen
thanks to all what a cracks u r 2010/6/8 sandeep kotha sandeep4u.ko...@gmail.com I agree with ken simple best thing to do %@ taglib prefix=sx uri=/struts-dojo-tags% sx:head / sx:datetimepicker key=bean.date displayFormat=dd/MM//. On 8 June 2010 23:09, lucas owen