File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Jsp not getting refreshed!(be tomcat!! ,be JRUN!!) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Jsp not getting refreshed!(be tomcat!! ,be JRUN!!)" Watch "Jsp not getting refreshed!(be tomcat!! ,be JRUN!!)" New topic

Jsp not getting refreshed!(be tomcat!! ,be JRUN!!)

lusha tak
Ranch Hand

Joined: Dec 30, 2000
Posts: 185
Hi Everybody!
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 "" ) 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.
Thnx in advance
Deepthi Katta

Joined: Mar 26, 2001
Posts: 7
Try using this
var submitcount = 0;
function checkResubmit() {
if (submitcount == 0) {
return true;
else {
return false;
Then while loading the page use this return checkResubmit(); at the end of the statement in jsp. I am not sure if it helps, but you can try it. Let me know what happened.
Sunil K Bansal
Ranch Hand

Joined: Jan 04, 2001
Posts: 62
Hi all,
I m facing the same problem what lusha tak is facing
please help ASAP
thanks in advance
I agree. Here's the link:
subject: Jsp not getting refreshed!(be tomcat!! ,be JRUN!!)
It's not a secret anymore!