You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ma...@Dresdner-Bank.com on 2003/11/27 09:42:36 UTC
ups - again: struts-user@jakarta.apache.org
Hi,
within the bean:write tag, i am able to format a property like this:
<bean:write name="myRendevousVO" property="date"
format="dd.MM.yyyy"/>
Is there a chance to format a property within the html:text tag the same
way, like:
<html:text name="myRendevousVO" property="date" format="dd.MM.yyyy"
/>
... or do i have to choose another approach in order to get formatted
properties into a textfield???
Thanks in advance for your help :o)
Mario Gleichmann
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: ups - again: struts-user@jakarta.apache.org
Posted by HG <hg...@websolver.dk>.
If I recall correctly the text tag does not support formatting... Strange
though...
I used an approach where my FormBean instance took care of formatting and
converting between the string representation of a date and the Date object
in a locale neutral way using Calendar class.
<Ma...@Dresdner-Bank.com> skrev i en meddelelse
news:A97EC97D836DCB4CBC7851BD3B9630B2138233@ffz00zmb.ffz00e.mail.dresdner.net...
> Hi,
>
> within the bean:write tag, i am able to format a property like this:
>
> <bean:write name="myRendevousVO" property="date"
> format="dd.MM.yyyy"/>
>
> Is there a chance to format a property within the html:text tag the same
> way, like:
>
> <html:text name="myRendevousVO" property="date" format="dd.MM.yyyy"
> />
>
> ... or do i have to choose another approach in order to get formatted
> properties into a textfield???
>
> Thanks in advance for your help :o)
>
> Mario Gleichmann
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org