help me!

Why when I modify the source of a jsp page, and press reload of Netscape(or feresh of IE), but the changes are not updated.I use tomcat 4.0-b5Thanks in advances
[195 byte] By [MaliciousHUT] at [2007-9-26 1:23:38]
# 1
Hi,You'll need to delete the precompiled jsp pages (which are cached) from the "work" directory. There should be a flag somewhere in the configuration files allowing tomcat to do this automatically, but I don't know exactly which one it is.Hope this helps,Kurt.
leukbr at 2007-6-29 1:02:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
You can also try to set reloadable="true" in the server.xml file.If it still doesn't work, try restarting tomcat.
leukbr at 2007-6-29 1:02:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thanks for all your comments,But if i must delete the compiled jsp (sevlets), it is so time-wasting and boring job,right?I also set reloadable=true in server.xml but its not effective?How can I do now?
MaliciousHUT at 2007-6-29 1:02:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Hi,

What webserver are you using? It's possible that the webserver caches the page.

And what editor are you using? Tomcat normally detects wether a jsp is out of date, and recompiles automatically. Check wether the date of the file is updated.

Ultimately you might want to write a batch file which restarts the server or delete the files from the work directory (not the "work" directory itself; only its contents!)

leukbr at 2007-6-29 1:02:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

i use Tomcat 4.0-b5 and Jbuilder 4.0 as editor program.

but infact,even sometimes I used notepad.exe to modify the content of a jsp page ut

the problem still remain.

I guess you are right when u said that Webserver cache the file, but how to reconfigure it?

Many of my friends did not meet this strange symtom! unlucky me, right? :(

MaliciousHUT at 2007-6-29 1:02:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

Hi,

If I'm not wrong Tomcat is only a servlet container. The webserver itself (Apache, IIS, iPlanet, NES, ...) can also cache pages.

And finally the browser can of course also cache the pages. Take a look at http://www.jguru.com/faq/view.jsp?EID=377 . Maybe this will help.

You've got to find out what of the following is successfully refreshing the page:

-deleting the files from the "work" directory

-restarting tomcat

-restarting webserver

-disable caching in browser

-empty browser's cache

-...

Then you can know what part is actually caching your pages.

leukbr at 2007-6-29 1:02:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Hi Press Ctrl+F5 to forcefully get the page from server. Or in CLick on IE->Tools->Internet Options.. ->General->DeleteFilesVinay
psvinayram at 2007-6-29 1:02:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...