This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See So, if you want to cache the entire page to session, write all the text to a String or StringBuffer and bind it to the session.
i have a page which has two questions and every question has three choices, the user should choose one choice of every quetion, if the user press a button to submit this page with out answering the quetion an error will come up probting the user to go back, so when he goes back he should see one of he is choices unchanged with out using the back button.
The normal way of dealing with this is to retrieve the values from the form, validate them and redraw the form if any are invalid. There is no need to store the entire page. Besides, you'll want to add a message to the page telling the user what values are invalid.