newbie-question: validation across multiple pages

2003-07-30 Thread Sebastian F. Martin
Hi all,

I've been studying the mailing list but couldn't find anything that
would help me. I'd be grateful if someone could give me a hint on this:

I am collecting user input across multiple pages and validate it in the
validate() method of the ActionForm. If an input field on the second or
the third page is empty after submit, the framework will take me back to
the first page. How can I make him turn me back to the page where the
input field was left blank?

Greetings
Sebastian



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Saving a dynamically created list of radio buttons

2003-07-25 Thread Sebastian F. Martin
Hello,
 
I need to save a dynamically created list of radio buttons to the
database. In order to give the administrator the possibility to give
users roles for certain departments, I am creating a dynamic list of
radio buttons, wich looks like this:
 
DepartmentNo RightsUser RightsKeyUser Rights
Accounting ooo
IT  oo
o
...an so on, where "o" is a radio button.
 
The departments come out of the database, via an ArrayList containing
Key/Value beans, wich I have declared in the ActionForm. To display
them, I use following code:
 





 
This renders following html-code:
No
Rights
User
KeyUser
 
No Rights
User
KeyUser
 
Up to here, everything works fine.
 
To my question:
how do I save this dynamically created list, since I don't know how many
fields to declare in the ActionForm wich, by the way, is of the type
DynaActionForm?
Can I maybe store these fields back in the ArrayList?
 
Thank you very much for your help!
Sebastian