Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > [Struts] DispatchAction and ActionForm

Reply
Thread Tools

[Struts] DispatchAction and ActionForm

 
 
ShadowMan
Guest
Posts: n/a
 
      07-12-2004
Hi all,
I'm building a wizard system using Struts.
I would use the validation features offered by Struts but I have a serious
problem.
When I am at step 'n' of the wizard, fields that are *required* at step
'n+1' are not filled, so I got an error.
Is there a way to associate the same DispatchAction to differents
ActionForms according to the "parameter" in the mapping?

thanx


 
Reply With Quote
 
 
 
 
Sudsy
Guest
Posts: n/a
 
      07-12-2004
ShadowMan wrote:
> Hi all,
> I'm building a wizard system using Struts.
> I would use the validation features offered by Struts but I have a serious
> problem.
> When I am at step 'n' of the wizard, fields that are *required* at step
> 'n+1' are not filled, so I got an error.
> Is there a way to associate the same DispatchAction to differents
> ActionForms according to the "parameter" in the mapping?


Check out the page attribute of the field element. According to the
javadocs:

page The JavaBean corresponding to this form may include
a page property. Only fields with a "page" attribute
value that is equal to or less than the page property
on the form JavaBean are processed. This is useful when
using a "wizard" approach to completing a large form,
to ensure that a page is not skipped.
[0]

Sounds like what you want, no?

 
Reply With Quote
 
 
 
 
ShadowMan
Guest
Posts: n/a
 
      07-12-2004
Sudsy <> wrote:
> ShadowMan wrote:
>> Hi all,
>> I'm building a wizard system using Struts.
>> I would use the validation features offered by Struts but I have a

serious
>> problem.
>> When I am at step 'n' of the wizard, fields that are *required* at step
>> 'n+1' are not filled, so I got an error.
>> Is there a way to associate the same DispatchAction to differents
>> ActionForms according to the "parameter" in the mapping?

>
> Check out the page attribute of the field element. According to the
> javadocs:
>
> page The JavaBean corresponding to this form may include
> a page property. Only fields with a "page" attribute
> value that is equal to or less than the page property
> on the form JavaBean are processed. This is useful when
> using a "wizard" approach to completing a large form,
> to ensure that a page is not skipped.
> [0]

It sounds good...but I can't find on the javadocs.
Wich class docs are you seeing?!

--
ShadowMan


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing data with Struts and ActionForm loris_p Java 2 06-07-2007 09:20 PM
Struts ActionForm and View's initialization alanmiles100@yahoo.com Java 1 11-01-2005 01:39 AM
[STRUTS] ActionForm and Date fields Hamvil Java 1 04-16-2005 10:50 PM
Struts and actionForm sp Java 1 07-12-2004 01:10 PM
Struts DispatchAction and LookupDispatchAction Ian Java 2 09-06-2003 05:17 PM



Advertisments