• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to refresh ".jsp" file???

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic