How you will save the data across different pages for a particular client request usingStruts

Showing Answers 1 - 4 of 4 Answers

Francisco

  • Apr 11th, 2005
 

Several ways. The similar to the ways session tracking is enabled. Using cookies, URL-rewriting, SSLSession, and possibilty threw in the database.

  Was this answer useful?  Yes

Joseph

  • May 4th, 2005
 

If the request has a Form object, the data may be passed on through the Form object across pages. Or within the Action class, call request.getSession and use session.setAttribute(), though that will persist through the life of the session until altered.

Sumit Sengar

  • Sep 9th, 2005
 

Create an appropriate instance of ActionForm that is form bean and store that form bean in session scope. So that it is available to all the pages that for a part of the request

  Was this answer useful?  Yes

Dhrubo

  • Apr 15th, 2006
 

Due its a bad practice to instantiate form beans in your code as their life cycle is managed by STRUTS in a kinda IOC style

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions