But then how will I set the default values amit
-----Original Message----- From: Keith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 10:36 AM To: Struts Users Mailing List Subject: Re: ActionForm and default values try removing the value= attribute from your <html: text. hope that helps. --- "Dua, Amit" <[EMAIL PROTECTED]> wrote: > Hi > > I want to populate my page with default value > > So, in order to do that > I have a value object (ReportData), ReportDataForm (Form Bean) > > I populate the Value object through one of the Action classes and then do a > Action Forward to one of the Jsp namely ReportData.jsp > > In the ReportData.jsp I do following > > ReportData reoportData = (ReportData)request.getAttribute("reportdata"); > <html:form action="reportAction.do"> > <html:text property="reportName" value="<%=reportData.getReportName()%>"/> > .................. > .............. > > > I do all the validation In ReportAction class which is mapped to > reportAction.do > > But when there is an error In the field , I am not able to get the value > populated for the text field. > > > Is there something wrong I am doing. > Or is there any other better way of doing this thing.. > > > Amit > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Bacon - Looking for struts work - South-East UK. phone UK 07960 011275 __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>