Problem while Refresh.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prodigyjohn
    New Member
    • Jun 2009
    • 4

    Problem while Refresh.

    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....
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    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

    Comment

    • prodigyjohn
      New Member
      • Jun 2009
      • 4

      #3
      Then how cam I populate the fields in the main form again. Please give me any idea.

      Comment

      • sgilberta
        New Member
        • Jul 2009
        • 7

        #4
        .

        You can try to store them in session data before they are changed.

        Comment

        • prodigyjohn
          New Member
          • Jun 2009
          • 4

          #5
          Can you please, tell me how to store them in session data before they are changed.

          Comment

          Working...