I have gone through the message and replies regarding - "How to Use bean:write inside html:text". But I couldn't trace out the solution to my problem from that. I got a field (and defined the property in DynaValidatorForm) which is of type java.util.Date and this is being populated in the action class. I want to store this in a text field. I think the following is not possible. <html:text property="mydt" value=" <bean:write name="form" property="mydt" format="mm/yyyy" /> " /> If I am trying this, it displays fine with the format <bean:write name="form" property="mydt" format="mm/yyyy" /> But how to format the date in a text box?? Is it possible to access a dynavalidatorform property in jsp Scriplets?
First you get a reference to a form. You can do something like this in a scriptlet: myForm = request.getAttribute("formNameFromStrutsConfig") (Change request to session if it is in session scope.) And then you can call the methods on the form reference from your jsp scriptlets.