You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Anthony J. Biacco" <ab...@formatdynamics.com> on 2012/10/12 18:32:23 UTC

jasper production config parameters

I would like to make the changes to my jasper config per
http://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html#Production_Con
figuration
I'm currently running 7.0.27

My question is, am I required to do this in $CATALINA_BASE/conf/web.xml
or can I make the change in ${webapp.path}/WEB-INF/web.xml?
If the latter, would my syntax be the same in that file, and apply to
all jsps for the webapp?
e.g.
    <servlet>
        <servlet-name>jsp</servlet-name>
 
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>development</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>trimSpaces</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>genStringAsCharArray</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>

Thanks,

-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
P: 303-228-7327
F: 303-228-7305
abiacco@formatdynamics.com
http://www.formatdynamics.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: jasper production config parameters

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Anthony J. Biacco [mailto:abiacco@formatdynamics.com] 
> Subject: jasper production config parameters

> I would like to make the changes to my jasper config per
> http://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html#Production_Configuration

> My question is, am I required to do this in $CATALINA_BASE/conf/web.xml
> or can I make the change in ${webapp.path}/WEB-INF/web.xml?

Note the comments at the beginning of conf/web.xml:

  <!-- This document defines default values for *all* web applications      -->
  <!-- loaded into this instance of Tomcat.  As each application is         -->
  <!-- deployed, this file is processed, followed by the                    -->
  <!-- "/WEB-INF/web.xml" deployment descriptor from your own               -->
  <!-- applications.                                                        -->
  <!--                                                                      -->
  <!-- WARNING:  Do not configure application-specific resources here!      -->
  <!-- They should go in the "/WEB-INF/web.xml" file in your application.   -->

If your goal is to put the JSPs of all of your webapps into production mode (quite reasonable), then change conf/web.xml.  If you want to experiment with just one webapp, add all the config related to the JSP servlet to that webapp's WEB-INF/web.xml file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org