JBoss Community

Using SSI (server-side includes) in JBoss AS 7.1 ( Thunder )

created by chris81t in JBoss AS 7 Development - View the full discussion

Hi folks!

 

I want to provide SSI ( server-side includes ) in the AS 7.1. I've got a war module in an EAR, which contains amongst other things *.html content like:

                                                     test page.

 

I have found to set following things into the web.xml to activate it:



<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>1</param-value>


    </init-param>


    <init-param>


        <param-name>expires</param-name>


        <param-value>60</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>*.shtml</url-pattern>


</servlet-mapping>


 

but nothing happen's. ( no debug output is given to the server console )

 

Neigher the #include nor the #echo are working. What's wrong or what I have forget to do? Can anybody help me?

 

Also I have found following link http://docs.jboss.org/jbossweb/7.0.x/ssi-howto.html

....To use the SSI servlet, remove the XML comments from around the SSI servlet and servlet-mapping configuration in $CATALINA_BASE/conf/web.xml....

But where is it? I think the only configuration file is for me the ( using standalone ) standalone.xml in the configuration folder. There I have not found something like SSI.

 

 

Thanks a lot!!!

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community