aspose file tools*
The moose likes Tomcat and the fly likes .shtml fil;e not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark ".shtml fil;e not working" Watch ".shtml fil;e not working" New topic
Author

.shtml fil;e not working

Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

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!


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I'm moving this one to Apache/Tomcat. It has nothing to do with Servlets.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jim Petersen
Ranch Hand

Joined: Jul 24, 2001
Posts: 241
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


- Jim Petersen <br />SCJP2<br />SCWCD<p>- but then again, I could be wrong...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

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

Joined: Jul 05, 2001
Posts: 2370

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

Joined: Jul 24, 2001
Posts: 241
Nice points Tim
As always, there's more than one way to skin a 'cat!
rgds Jim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .shtml fil;e not working