For SEO reasons and also due to a legacy project I am working on I
have been trying to get Server Side Includes (SSI) working on the
embedded Jetty. I have almost got it working successfully for example
my default webpage is called default.html and in hosted browser mode
when I enter the address http://localhost:8080/ then the SSI
directives work (I am simply including a navigation header and also a
footer). However if I browse directly to http://localhost:8080/default.html
then the navigation header and footer are not being inserted. I also
have the same issue with any other page that default.html links to.
As far as I can see there are no log or warning messages.
The way I got SSI to work on the embedded jetty was to add the entries
below to web.xml file
<servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>
org.apache.catalina.ssi.SSIServlet
</servlet-class>
<init-param>
<param-name>buffered</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>expires</param-name>
<param-value>666</param-value>
</init-param>
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>4</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>ssi</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
Then I copied in these extra jars from Apache into PROJECTNAME/war/
WEB-INF/lib
catalina.jar
catalina-optional.jar
servlets-ssi.renametojar, which you need to rename to servlets-
ssi.jar
commons-logging-api.jar
I am using the code below to insert the navigation.html
<!--#include file="navigation.html"-->
Any help or pointers would be greatly appreciated.
Thanks
Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---