On 12/4/05, Shivani Sawhney <[EMAIL PROTECTED]> wrote:

> Thanks so much Martin.........but I am not trying to validate a date
> field, I am actually trying to give a dynamic initial value to a text
> box through struts-config.xml.
>
> <form-property name="date" type="java.lang.String"
> initial="rd.admin.DateFormat.getDate()"/>

>From the DTD, the 'initial' attribute of <form-property> is:
   "String representation of the initial value for this property."

The typical solution is to pre-populate the form in a "setup" action
(or in a method of a DispatchAction) before forwarding to the JSP.  Is
there some reason that won't work for you?

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to