Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Parent JSP Page is not refreshing properly after modifying a child Jsp.

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Parent JSP Page is not refreshing properly after modifying a child Jsp.

    Hi,

    I am working on a Struts app and I am facing following problem .

    Working Scenario:

    I have a JSP page where I have few fields. One of the field is a hyperlink, clicking on which I get a pop-up child JSP page.
    Now on that child JSP, i enter few data and save it. now this child JSP closes and parent JSP should refresh with the new data in child JSP. It is working fine if this action is done within 15 minutes.

    Not working scenario:

    If I leave the parent JSP page idle for more than 15 mins, and then click hyperlink, update and save the Child JSP page, the parent JSP is refreshing but the data is lost. I mean that the table data disappears, drop down values diappear and the dropdown width decreases so I can not see the options in the drop down.

    What could be the cause and how to correct it? Please help.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,335
    Thanks
    181
    Thanked 830 Times in 773 Posts
    Blog Entries
    5

    Default Re: Parent JSP Page is not refreshing properly after modifying a child Jsp.

    Do you utilize sessions, cached objects, or anything that might have a lifetime? For instance, is the session populated with parameters which are lost after the session expires?

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Parent JSP Page is not refreshing properly after modifying a child Jsp.

    Yes I am dealing with sessions. But session time out is set to 45 mins in web.xml.

    I was just wondering how come after 15 mins all the data disappears from parent JSP.

Similar Threads

  1. Java Child process cannot execute properly for telnet command
    By mamunbu in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 25th, 2011, 07:43 AM
  2. Replies: 7
    Last Post: July 21st, 2011, 02:29 PM
  3. Access and set variable in parent class through child
    By java_newbie in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 19th, 2011, 10:44 PM
  4. saving the data of the child jsp into parent jsp
    By nrao in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: January 15th, 2011, 10:05 AM
  5. GUI does not pop up in child process before parent is killed
    By Antipeko2 in forum Java Theory & Questions
    Replies: 0
    Last Post: February 26th, 2010, 05:32 AM