Or you could check the latest tomcat-apache howto from the CVS repository on
jakarta.apache.org - it details how to easily convert SSI pages to JSPs.

Cheers... Mike

>
> Stephanie Smith wrote:
> >
> > Fellow Tomcat users,
> > I have Tomcat and Apache both running fine on my server.
> > Servlets and JSPs work fine.  Now I want to get server side
> > includes to work.  I've got SSI commands in a .shtml file and they
> > work fine -- they are getting interpreted by Apache and
> > the output is correctly displayed on my web page.  Then I attempt
> > to invoke a servlet using the servlet tag and specify values for
> > CODE and even CODEBASE.  No matter what I try, I can't get
> > the servlet to run.  I'm assuming this is a Tomcat problem and
> > not an Apache problem.
> > Please help.  You're my last hope.
> > Thanks,
> > Stephanie Smith
>
> You're right, Tomcat doesn't support SSI. A reasonable easy solution
> would be to convert your .shtml files to .jsp files, and change the
> servlets into regular Java classes and instantiate them
> inside scriplet
> tags:
>
>  <%
>      MyClass myClass = new MyClass();
>      myClass.doSomething();
>      out.println( myClass.results();
>  %>

Reply via email to