Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Tomcat Interview Questions and Answers

Question: How do I enable Server Side Includes (SSI)?
Answer:
Two things have to be done for tomcat to aknowledge SSI scripts: 
  • Rename $CATALINA_BASE/server/lib/servlets-ssi.renametojar to $CATALINA_BASE/server/lib/servlets-ssi.jar. 
  • Uncomment the section of web.xml found in $CATALINA_BASE/conf/web.xml that deals with SSI. it looks like this when it is uncommented: 
<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>

Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook