This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes urgent problem, jsp not getting refreshed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "urgent problem, jsp not getting refreshed" Watch "urgent problem, jsp not getting refreshed" New topic
Author

urgent problem, jsp not getting refreshed

Sunil K Bansal
Ranch Hand

Joined: Jan 04, 2001
Posts: 62
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

vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
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.


VAIBHAV <BR>SCJP
Desai Sandeep
Ranch Hand

Joined: Apr 02, 2001
Posts: 1157
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
vgdesai@vsnl.com

  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


<b>Sandeep</b> <br /> <br /><b>Sun Certified Programmer for Java 2 Platform</b><br /> <br /><b>Oracle Certified Solution Developer - JDeveloper</b><br /><b>-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </b><br /><b>-- Object-Oriented Analysis and Design with UML</b><br /> <br /><b>Oracle Certified Enterprise Developer - Oracle Internet Platform</b><br /><b>-- Enterprise Connectivity with J2EE </b><br /><b>-- Enterprise Development on the Oracle Internet Platform </b>
Desai Sandeep
Ranch Hand

Joined: Apr 02, 2001
Posts: 1157
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
vgdesai@vsnl.com

  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

Joined: Jan 04, 2001
Posts: 62
thanks Sandeep i will try this
Bansal
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
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

Joined: Apr 02, 2001
Posts: 1157
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
vgdesai@vsnl.com

  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgent problem, jsp not getting refreshed
 
Similar Threads
JSP not getting refreshed, Modrators Please Help
Can't Get Tomcat 4.1.18 running
Jsp not getting refreshed!(be tomcat!! ,be JRUN!!)
Living without a controller?
JSP cannot be refreshed..