Chapter 5: Basic Tomcat Confi guration Configuring the Invoker Servlet The invoker servlet can be used to load and execute any servlet directly, using a URL similar to the following: http:////servlet/ Because of its capability to invoke any servlet directly (with or without prior configuration within a Web application) the invoker servlet is considered a major security risk in production systems. Therefore, this servlet should be used only in test configurations. Tomcat 6 s default web.xmlfile has the invoker servlet configuration commented out for this security-related reason. You can uncomment it and enable the servlet on test configurations. The invoker servlet is configured as follows: invoker org.apache.catalina.servlets.InvokerServlet
debug
0 2 –> Configuring the Jsp Servlet The JspServlet converts JSP pages to servlets and executes them. This servlet has a development code name of Jasper but is frequently referred to as Japser. Jasper is used to process JSP pages. The following web.xmlsegment shows the configuration of this servlet: jsp org.apache.jasper.servlet.JspServlet
fork
false
xpoweredBy
false 3 Other initialization parameters for Jasper that are used frequently are explained in the following table.
For high quality website hosting services please check cheap web hosting website.
This entry was posted
on Sunday, February 22nd, 2009 at 4:02 pm and is filed under tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.