• 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

Tomcat 5.0.19 shtml problem

 
Rob Chung
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you rename this file '<tomcat>/server/lib/servlets-ssi.renametojar'?
Ren�
 
Rob Chung
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic