You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marc Dugger <ma...@socotech.com> on 2003/10/17 22:32:40 UTC

repopulating options of when validation fails

Can anyone offer a crafty method of reloading a dynamic collection of
<html:options> into the request scope in case form validation fails and the
controller must forward to the 'input' of the action mapping?  Thanks.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003


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


RE: repopulating options of when validation fails

Posted by Robert Taylor <rt...@mulework.com>.
set your input attribute value to the action mapping which
set's up the page for display. 

So if you have SetupAction as the action invoked prior to 
displaying the page which contains the options collection, then
you would use it's action mapping as the input for the action
which processes the form input.

robert

> -----Original Message-----
> From: Marc Dugger [mailto:marc@socotech.com]
> Sent: Friday, October 17, 2003 4:33 PM
> To: struts-user@jakarta.apache.org
> Subject: repopulating options of <html:select> when validation fails 
> 
> 
> Can anyone offer a crafty method of reloading a dynamic collection of
> <html:options> into the request scope in case form validation 
> fails and the
> controller must forward to the 'input' of the action mapping?  Thanks.
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

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


RE: repopulating options of when validation fails

Posted by Steve Raeburn <sr...@apache.org>.
Set your input parameter to the *action* that prepares the page, not
directly to the page itself.

Steve

> -----Original Message-----
> From: Marc Dugger [mailto:marc@socotech.com]
> Sent: October 17, 2003 1:33 PM
> To: struts-user@jakarta.apache.org
> Subject: repopulating options of <html:select> when validation fails
>
>
> Can anyone offer a crafty method of reloading a dynamic collection of
> <html:options> into the request scope in case form validation
> fails and the
> controller must forward to the 'input' of the action mapping?  Thanks.
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



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