Hi All,

I am using struts 1.3 in my application .

I have a requirement to develop multiple JSP pages linked to each other(
like a WIZARD) .
The flow is as below.

level1.jsp->level2.jsp->level3.jsp->level4.jsp

In each page a list of records are displayed with few editable fields. On
click of each record in the list , the corrusponding  next level  page
(list)  is displayed.User can update the list in every page by clicking the
SAVE button.Also user can go to previous page by clicking the Previous
button . In this case the state of the previous page should be retained.

I have 2 questions regarding the design in this case:

Q1 : 
Among the below solutions which will be the best solution to display the
data on the pages.

1. On each click of the record , every time  new request is made to the
server and the currosponding next level data of the record  is fetched from
database and next level page is displayed.
The disadvantage of this approach is number of server hits are more. As
every time  user will drill down till the last level and come back to the
first level and takes and action (update ) .

2. To avaoid the number of hits to the server, I can fetch the entire data (
ie,level 1 to level 4 data ) of the record only once and keep it into
session.
Since the data is too huge I am thinking if storing into the session will
cause any performance issues.


Q2. 
This is regarding Handling the "Previous" button flow.
As mentioned earlier , user can click the "Previous" button of each  page
and go back to the previos level (with the previous state maintained) . 
Here if the scope of my Form object is "request" I will lose my previous
page data after I create a new request for "Previous". Here again I can
restore the entire data by caching on server side or storing it in session .
Please let me know if any other suitable approach can be used to restore the
data of Previous page.

-- 
View this message in context: 
http://old.nabble.com/Struts-%3A-Maintaing-state-of-the-form-tp28532632p28532632.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to