maintain data in tabs in JSP pages

J

jrefactors

I have 4 tabs on the window. When the user click one of the tabs, then
it will go to that page.
should I have 4 JSP pages in this case? But I also need to maintain the
data of each page.
For example, the user enter the data in the form in page1, and then
click tab2, and go click
back tab1, the data the user just entered should still in page1. Then I
will keep 4 copies of
data objects for the form in session?
please advise the best approach. thanks!!
 
R

Ryan Stewart

I have 4 tabs on the window. When the user click one of the tabs, then
it will go to that page.
should I have 4 JSP pages in this case? But I also need to maintain the
data of each page.
For example, the user enter the data in the form in page1, and then
click tab2, and go click
back tab1, the data the user just entered should still in page1. Then I
will keep 4 copies of
data objects for the form in session?
please advise the best approach. thanks!!
Are you talking about a multi-page form? Store things in the session as
appropriate and populate the forms from the session when the page(s)
load(s). Struts handles all this for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top