Problem while Refresh. 
June 19th, 2009, 01:31 PM
| | Newbie | | Join Date: Jun 2009
Posts: 4
| | |
Hai Everybody,
I am new to Java coding; I want to solve a problem in Jsp and servlet. Here I am having a pop in main-form, when the pop is pressed it will pass to the sub-form. After filling the sub-form it will back to main form.
My problem is, while I am getting a value from the sub-form to main-form, the page is refreshing. It is ok, but the value already in the main-form textboxes gets disappeared. But I want the buffer value at same textbox after refreshing. I don’t know what to do. Please help me to solve this problem....
Lots of Thanks in Advance....
| 
June 20th, 2009, 11:32 AM
|  | Expert | | Join Date: Mar 2007
Posts: 10,634
Provided Answers: 2 | | | re: Problem while Refresh. Quote:
Originally Posted by prodigyjohn Hai Everybody,
I am new to Java coding; I want to solve a problem in Jsp and servlet. Here I am having a pop in main-form, when the pop is pressed it will pass to the sub-form. After filling the sub-form it will back to main form.
My problem is, while I am getting a value from the sub-form to main-form, the page is refreshing. It is ok, but the value already in the main-form textboxes gets disappeared. But I want the buffer value at same textbox after refreshing. I don’t know what to do. Please help me to solve this problem....
Lots of Thanks in Advance.... | When you're working with Servlets and JSPs remember that the traffic always goes from the client to the server and vice versa; there is no way to go 'back', so if you want to give the impression that you go 'back' from the sub form to the main form you have to populate the fields in the main form again; it's the responsibility of the servers, nothing automagically 'remembers' those field values for you.
kind regards,
Jos
| 
July 2nd, 2009, 05:52 AM
| | Newbie | | Join Date: Jun 2009
Posts: 4
| | | re: Problem while Refresh.
Then how cam I populate the fields in the main form again. Please give me any idea.
| 
July 2nd, 2009, 03:12 PM
| | Newbie | | Join Date: Jul 2009
Posts: 2
| | | re: Problem while Refresh.
You can try to store them in session data before they are changed.
| 
July 6th, 2009, 06:00 AM
| | Newbie | | Join Date: Jun 2009
Posts: 4
| | | re: Problem while Refresh.
Can you please, tell me how to store them in session data before they are changed.
|  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|