File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Population of Form Fields from page to page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Population of Form Fields from page to page" Watch "Population of Form Fields from page to page" New topic

Population of Form Fields from page to page

Paul Duer
Ranch Hand

Joined: Oct 10, 2002
Posts: 98
Okay guys,
I know this is an easy on, but I just wanna check and make sure I am doing it right.
I have a page with 3 combos on it. I use an ActionForm and Class to process the values and then I return to the same page with a results table displayed.
I want to be able to carry the values in those combo boxes over from the first instance of the page to the second, where I have the results.
How do I this using correct Struts methodolgy?
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
Make sure that the ActionForm is populated with the correct values for re-display. Sometimes it is appropriate to simply specify the scope of the page as session, while perhaps other times you want to populate a new ActionForm.
I agree. Here's the link:
subject: Population of Form Fields from page to page
Similar Threads
Servlets, JSPs & iFrames
Difference between getAttribute and getParameter
jsf page refresh
use of <bean:write> and <bean:message> ???
Populating bean from servlet