Enabling SSI (ServerSide Includes) in JBoss?

Have any of you guys included SSI (ServerSide Includes) in JBoss? I think it will not be difficult, since it is built on top of the Tomcat instance.

+3
source share
1 answer

Tomcat already includes org.apache.catalina.ssi.SSIServlet in catalina.jar, so just declare the servlet and attach it to the mapping URL by setting this in web.xml applications

<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>60</param-value>
    </init-param>
    <init-param>
        <param-name>isVirtualWebappRelative</param-name>
        <param-value>1</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>

I put all the parameters, you can see their definition in the Tomcat SSI link .

doc, SSI , , context.xml, jboss-web.deploy . = "true" .

<Context ... privileged="true">

, URL- .

+3

Source: https://habr.com/ru/post/1709314/


All Articles