I am new to Struts but understand the basics. However, I have a question regarding to the best practices of using Action Forms. ActionForms are great for processing HTTP parameters typically read from a HTML form. However, would you say that it is a good idea to have some other properties of the ActionForm that are not related to the HTML form but are populated by the Action class and used by the page that the Action forwards to, i.e. it is essentially a method of passing values to a subsequent page as a result of some action being performed? If this is not recommended, could someone please suggest some best practices for passing parameters from one page to another? Many thanks, Ian.
posted 12 years ago
When I need to carry/pass values around I usually will just set a session or request attribute in the action. I don't know if it's right or wrong within Struts, but that's what I do.