Re: SSI in TOMCAT - A bit off-topic!

Becky Phaneuf <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Oh, by the way, you need to give it an extension of .jsp.

-B

>>> [email protected] 02/07/03 09:50AM >>>
Tomcat doesn't support the <servlet> tag.  

Try <jsp:include page="/path-to-servlet/servlet-name" />

-B


>>> [email protected] 02/07/03 05:46AM >>>
Has anyone activated Server Side Include(SSI) in Tomcat 4.1 ?

I have followed the normal instruction under Apache's Tomcat website,
including :
1. Renaming servlets-ssi.renametojar to servlets-ssi.jar in directory
CATALINA_HOME/server/lib/ ;

2. Uncommented <servlet><servlet-name>ssi</servlet-name>...</servlet> and
<servlet-mapping>
        <servlet-name>ssi</servlet-name>
        <url-pattern>*.shtml</url-pattern>
    </servlet-mapping>
in web.xml in directory CATALINA_HOME/conf/ ;

3.Created a *.shtml file with the necessary <servlet code=..><param name=..
value=..></servlet> tags.

The problem is : when I call this *.shtml file under Tomcat, it does seems to
recognise my servlet - it only output its text content - although when I
directly call the servlet, it has no problem rendering its output.

Any help will be much appreciated.

Bob.

p.s.: I have googled, but can't find any solution. Sorry for the slight
off-topic once again.

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html 
Resources: http://java.sun.com/products/servlet/external-resources.html 
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html 

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.