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/yyyy"/>.

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 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}" pattern="dd/MM/yyyy" /> but in
> this case the date wouldnt be editable...
>
>
> any ideas???
>
> Thanks in advance!
>

Reply via email to