struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Beaumont <IBeaum...@categoric.com>
Subject RE: ActionForm and default values
Date Wed, 20 Feb 2002 15:54:27 GMT
This question seems to be going around and around this mailing list and no
one has produced an answer.

-----Original Message-----
From: Dua, Amit [mailto:ADua@wellington.com]
Sent: 20 February 2002 15:46
To: 'Struts Users Mailing List'
Cc: 'keithbaconstruts@yahoo.com'
Subject: RE: ActionForm and default values


But then how will I set the default values

amit

-----Original Message-----
From: Keith [mailto:keithbaconstruts@yahoo.com]
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" <ADua@wellington.com> 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:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message