• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

urgent problem, jsp not getting refreshed

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Jsp pages are not getting refreshed .As the result the o/p from the bean(called in the corresponding JSP page) remains same.
I have tried 'page','session',request' scope of bean but the problem could not be solved.
This problem does not exist when I m running the application with the URL as "http://locahost:8081/pms/...."
But as soon as I specify the IP address of the server instead of localhost(i.e URL as "http://185.15.15.6:8081/pms/..." ) on the server only(same m/c), the JSP pages doesn't get refreshed consequently the bean is never called again & the o/p remains unchanged.
When I refresh the page ,it starts working fine.
There is no problem in the cache of the local m/c as even I ve tested it on those m/c's browser where this application was running for the very first time.
I ve tried diffent server as TOMCAT & even JRUN but not I think it is not the Problem of any particular server.
Plz do help.
Thanks
Bansal

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try flushing your data time by time.May be you are not opening and closing the nconnection properly.Try giving the application scope to your bean as well.
 
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sunil,
Th easiet way to refresh your pages is to set the appropriate header.You can use the implecit request object of your JSP page to set the following HTTP header.

This would ensure that your page gets refreshed after every 10 seconds.
Hope this helps,
Regards,
------------------
Sandeep Desai
[email protected]

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
An errata in my previous message.You should use the implicit response object NOT request object
for setting the header.
Hope you would have figured this out from the code I pasted in the previous message!!
Regards,


------------------
Sandeep Desai
[email protected]

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
 
Sunil K Bansal
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Sandeep i will try this
Bansal
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sandeep,
There is a 'Edit image' for each post. An image with paper and pencil near firs line of your post.. With this we can edit our message. Just in case if you didn't know.
regds
maha anna
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maha anna,
Thanks for helping me find out the "Edit image" next to the post.I am new to this group, so I could not locate, till you mentioned about it
Sandeep
------------------
Sandeep Desai
[email protected]

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
 
reply
    Bookmark Topic Watch Topic
  • New Topic