This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Tomcat 5.0.19 shtml problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.0.19 shtml problem" Watch "Tomcat 5.0.19 shtml problem" New topic
Author

Tomcat 5.0.19 shtml problem

Rob Chung
Ranch Hand

Joined: Oct 15, 2002
Posts: 46
Hi
I am new to servlet and Tomcat. I am trying to do the SSI CurrentTime simple sample. Tomcat 5.0.19 release note says that if I uncomment the SSI related details in the web.xml, SSI should work. The shtml file ran with no error but does not seem to acknowledge the servlet. I went to the servlet direct on the url and I could see the servlet fine. So my guess is that the shtml side is not working. I have looked on the web for answers however most similar questions dealt with earlier versions of Tomcat which do not support SSI.
Any ideas?
Thanks!
Rob
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Did you rename this file '<tomcat>/server/lib/servlets-ssi.renametojar'?
Ren´┐Ż


Regards, Rene Larsen
Dropbox Invite
Rob Chung
Ranch Hand

Joined: Oct 15, 2002
Posts: 46
Yes, I did. As well as uncommenting the SSI related nodes in the Tomcat home/conf/web.xml, I also tried to move these nodes to my working folder's web.xml and neither worked.
Rob Chung
Ranch Hand

Joined: Oct 15, 2002
Posts: 46
I have also tried adding codebase in my shtml :
<servlet codebase="/ap1/WEB-INF/classes" code="CurrentTime.class">
and still doesn't work. Any ideas?
Thanks!
Rob Chung
Ranch Hand

Joined: Oct 15, 2002
Posts: 46
I think tomcat is not picking up the <servlet> tag in the shtml and I don't know why. I found this because the shtml continue to display the page without invoking the (SSI) servlet.
Pls help.
 
 
subject: Tomcat 5.0.19 shtml problem