Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to refresh ".jsp" file???  RSS feed

 
nivedkumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Buddy
I am able to call .jsp file from my system ONLY ONCE, after its creation. Our JSP-server is TOMCAT-Server 3.2.1
which is located in another machine(our network server -Win NT).
If I modified the .jsp file from my system, I am not getting
the refreshed version. I don't know why my jsp-server is not
refreshing it. But If I do the same from my friend's machine
and the server-machine, I am getting the refreshed version.
Any server configuration is needed for this??

Please help me in this regard, very soon.
Waiting for your reply.
Bye Nived
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"nivedkumar"
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
------------------

Mahindrakar
IBM Application Server Forum Moderator

Consultant - Zensar Technologies ,Pune India.
SCJP2, SCJD2 & SCJEA (Part I)
 
Tariq Dweik
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there
this problem is presented due to caching. your browser cache the requested page and keep it localy and when u ask for a given URL it compares between the one in the cache in the one in the server by what is called "conditional get". to solve the problem there is a couple of methods.
1. hit your refresh button in your browser twice (simple like that )
2. in server.xml file when u r declaring the context make sure that it is reloadable.
3. in the response add a header with the following properties
name : HTTP_PRAGA
value : no-cache
Tariq Dweik
SCJP SCWCDJ2EE
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clcik on the Refresh button (in the Internet Explorer) by holding Shift key. It actually forces a connectiont to the server then you will get the latest JSP file.

------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!