struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Willson <sean.will...@divine.com>
Subject Re: help populating an array before perform action
Date Fri, 15 Feb 2002 13:10:55 GMT
You can always turn autovalidation off on that form and then within your 
action call validate(...) yourself. Then if errors are returned load the 
default data, and if not, then do whatever it is your action needs to do 
to process the data. Just and idea ... that's how we do it in those cases.

Sean

Ronald Haring wrote:

> Hi all,
> 
> I am still stuck with this.
> 
> I have a jsp file that has a list with values and some input fields.
> The list will be populated by a previous ActionServlet
> ActionServlet ...
> formBean.setList( list.findResults() )
> request.setAttribute("formBean", formBean);
> mapping(findForward("nextPage") );
> 
> However when the validate for the next page finds something wrong it must
> display the
> same page again, but the list is empty at that stage. How can I populate
> this list again?
> Should I re-populate the list at the validate of the formBean?
> 
> Gr
> Ronald
> 
> 
> Furore B.V.
> Rijswijkstraat 175-8
> Postbus 9204
> 1006 AE Amsterdam
> tel. (020) 346 71 71
> fax. (020) 346 71 77
> 
> ---------------------------------------------------------------------------- 
> 
> ---------------
> The information transmitted is intended only for the person
> or entity to which it is addressed and may contain confidential
> and/or privileged material. Any review, retransmission,
> dissemination or other use of, or taking of any action in
> reliance upon, this information by persons or entities other
> than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material
> from any computer
> ---------------------------------------------------------------------------- 
> 
> ---------------
> 




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


Mime
View raw message