Link to home
Start Free TrialLog in
Avatar of ronn1212
ronn1212

asked on

refresh browser without losing page data

hello all,
I have a page which has to be refreshed according to a
certain action taken by the user.
The problem is once the page is refreshed ,all the data
that was in the form before (text fields,text area etc.)
is now blank and the user has to wrire the whole thing again.
I know the solution is related to the <div> tag and hidden iframe and some JSP,but i can seem to make the connection and solve this problem.


thank you for your kind help
Avatar of boxy73
boxy73

Refresh the page by using the submit method of your form and using the same page as the action target. When starting the page, in JSP code, use request.getParameter() to collect the values it already had, and insert them in the form. You can send then via post method.

Be careful those values can be null for the first time the page loads.

ASKER CERTIFIED SOLUTION
Avatar of kaushikgmehta
kaushikgmehta

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of girionis
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points to kaushikgmehta

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

girionis
EE Cleanup Volunteer