This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing a web application using the struts framework on tomcat. Now, I have one form that spans multiple pages. So to enable free user navigation between pages (1st to 3rd to 4th to 2nd....) and maintain the form values i store the form information in a form object with session scope. if the user, after completing the 4 pages of the form presses save, i save the info into the database and remove the session attribute from memory. but my problem is what if the user decides in the middle of filling out the form to go to some other page, and clicks on one of the other links. Now the session variable is still in memory without any use for it. one way around this i see is to remove all session variable my application creates within each action class except for the ones that are required for that particular page. But this i don't see a practical or an elegant solution. Can some one please help me with this problem. suggestions and/or references to sites with helpful info on this will be greatly appreciated. Thank you. ===== Poorav Chaudhari
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.