Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


JSP not refreshing in Tomcat 5.5

Posted on 2004-10-31
Medium Priority
Last Modified: 2008-02-01
I am using Tomcat 5.5. I am putinng my JSPs on that server. Whenever I am changing my old JSP with new ones, its not (infact most of the time) always guaranteed, that my browser will show the content of new jsp(though I am cleaning my browser cache). I have to manually clean servlet classes generated by tomcat for jsp. Is there any workaround ? or any setting I nead to change, so that it autorefresh the content of my new JSP.

Question by:hwssoft
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 19

Accepted Solution

ramazanyich earned 1000 total points
ID: 12467371
check  your conf/web.xml file. In that file find JspServlet definition:

check that there is no
Put that parameter to true.

Author Comment

ID: 12470360
I checked, following lines were not there in conf/web.xml under <servlet-name>jsp</servlet-name> dection

But I am still facing the same problem.
LVL 23

Expert Comment

ID: 12489281

Tomcat sucks when it comes to include files. The problem is that Tomcat doesnt keep track of include file dependencies. However, a good alternative to this is to use the <jsp:include /> tag that is standard in all Java Web Servers.  This will only work if you have to include STATIC Files. It doesnt work like "<%@ include"does for Dynamic includes.

<%@ tags are by definition, compiler directives... So they get included at compile time. So if you had any jsp code in the included file, that gets compiled too.

However, <jsp:include> is a runtime include tag, which just attaches the file to the ouput. And this should be perffffect for your HTML include.

Hope this helps.


Author Comment

ID: 12490010
But I am not changing anything in include file, I just want to reflect changes, what I have done in my main jsp page. Currenlty I have to remove the classes generated for that page manually.

Author Comment

ID: 12490079
Probably, these points should be rewarded to me itself :)  I have got the problem. My server is in remote location, acoording to time zone difference though it should be around 10 hours back, it time is few hours ahead of my computer.  When ever I am using "SSH (Secured shell transfer client) in windows env." client to copy my jsp on this server,  modified time remains same as of my computer. The compile time of previously generated class file is most of the time ahead of the new copied jsp. Due to which server doesn't compile the new jsp again.

  I will reward these points to anybody, who can help me in using "SSH (Secured shell transfer client)" client, such that modified time of newly copied jsp should be that of server, whenever it is copied to remote server. Version of  "SSH (Secured shell transfer client)" is 3.2.0.  May be any setting in the client should do. This should happen without disturbing time of either my p.c. or remote server.

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question