Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.shtml fil;e not working

 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi pals, i could not run .shtml files under Tomcat 4 in Windows 2000 server and wanna know whether SSI is runnable under Tomcat 4 and also in IIS5.

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this one to Apache/Tomcat. It has nothing to do with Servlets.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can run https with Tomcat versions 3 and 4 - it's documented fairly well at the jakarta tomcat website.
In the case of running Tomcat through another web server such as IIS or Apache, the actual https is usually handled by the front-side web server and the web-server/tomcat pipeline may be insecure (decrypted), so you want to make sure that the firewall blocks direct access.
You'd usually want to anyway.
 
Jim Petersen
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashik
Not sure how https got wrapped up into a discussion of SSI (Server Side Includes )
Looking at Java Examples in a Nutshell, Dave Flanagan states Tomcat 3.X doesn't support server-side includes (SSI)(p. 467) Jason Hunter's book also confirms this (p. 14) So it seems you can't do .shtml through Tomcat
Also I noted this question has been asked here as well...
all the best - Jim
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops. Sometimes "SSI" and "SSL" get crossed. It's easy to misread "shtml" as "Secure HTML". Either that or maybe there's dirt on the screen near the base of the "I"_
Of course, SSI Apache-style is pointless, since JSP's have an "include" facility that's as good or better. If you simply want SSI-type operations on ".shtml" pages, you can either:
A) front Tomcat with Apache (the high-performance approach)
B) Setup Tomcat's web.xml to interpret shtml's into JSP's (the sneaky approach)
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx Jim & Tim, got some lights from u...

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Jim Petersen
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice points Tim
As always, there's more than one way to skin a 'cat!
rgds Jim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic