A related question I've wondered about is whether to store everything a JSP page needs in the ActionForm. When I first learned Struts, that seemed like a smart idea -- everything that a page needed was stored in the one object. Obviously some of the fields would be nested objects.

Now it seems to me that the only real advantage of ActionForms is that they auto-populate to and from HTML FORMs, so I only use them for that. Information that is just to be displayed on a page is stored in a scope -- request most likely.


Michael Jouravlev wrote:
Turns out, that my way of using action forms differs from many other
Struts users' habits. So, I am wondering how do you use action forms.
I could not find the same poll in mailing list archives, so I am
starting this one.

You can answer here in the thread, or in the poll form, which I
created on my site: http://www.superinterface.com/projects.htm But
don't answer in both places ;) I wish wiki had a way to do polls.

What is your preferred way to use action forms?
#1 Prefer not to use action forms at all
#2 For input data only (usually collected from HTML form)
#3 For output only (to be used in JSP)
#4 Same form for input and output
#5 One form for input, another for output
#6 Other

Thanks, Michael.

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



-- Neil Erdwien, [EMAIL PROTECTED], Web Technologies Manager Computing and Network Services, Kansas State University

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



Reply via email to