struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jouravlev <jmi...@gmail.com>
Subject Re: wizard-style form and validator
Date Thu, 03 Nov 2005 14:55:03 GMT
On 11/3/05, Nicolas De Loof <nicolas.deloof@capgemini.com> wrote:
>
> Hello,
>
> I'm building a wizard style webapp with 3 pages. I'm using the page
> attribute to make validator check inputs.
> I've got this problem :
> first page validate an userId selection (required)
> When this rules failes on page 2 or 3 (let's consider the user has used
> a bookmark), I'd like struts to go back to page 1. How to configure my
> action-mapping for this as I only have one "input" attribute, without
> paging support ?

Have you tried this:
http://struts.sourceforge.net/strutsdialogs/wizardaction.html
Even if you will not use WizardAction, here is the tip: display all
wizard pages from a single action. This way a user won't be able to
navigate to arbitrary page.

Michael.

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


Mime
View raw message