Connecting Tech Pros Worldwide Help | Site Map

Problem while Refresh.

  #1  
Old 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....
  #2  
Old June 20th, 2009, 11:32 AM
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,634
Provided Answers: 2

re: Problem while Refresh.


Quote:
Originally Posted by prodigyjohn View Post
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
  #3  
Old 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.
  #4  
Old 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.
  #5  
Old 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.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
c# refresh tooltip MichK answers 4 October 30th, 2009 01:18 PM
Problem While Browsing my aspx page bremtech answers 0 September 29th, 2006 08:09 AM
Auto refresh datagrid aliansari answers 1 November 18th, 2005 10:37 AM
How to Refresh a Page Template using python in zope server ganesh9001892 answers 0 July 18th, 2005 07:24 PM