Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Tomcat The Definitive Guide does not mention use of the crossContext setting in server.xml

I have purchased the book Tomcat: The Definitive Guide. (Tomcat 6.0 2nd Edition)
I believe it is missing mention of a useful Tomcat configuration setting:
It does not mention the use of the crossContext="true/false" switch which can be used in the Tomcat server.xml file Host Context, to allow cross-context use of resources. For instance, crossContext must be set to "true" if you need to specify an external context in the c:import JSTL tag used in JSP pages.
1 person has
this question
  • Hi Chris,

    Thanks for your feedback regarding the missing Tomcat configuration setting: crossContext="true/false".

    We've added a new online feature on each O'Reilly catalog page that provides up to date errata changes and an option to submit your own errata suggestions directly to the editorial team.

    Please visit;

    There are a couple included references to CrossContex, but I'm sure listing this in an index would be helpful.

    pf 275
    add a few lines to the server.xml configuration file:...


    pg 277 Table 7-8
    crossContext Should ServletContext.
    getContext("otherWebApp") succeed (true) or return null (false).
    false, for generally good security reasons.a
    Tomcat: The Definitive Guide, 2E
    October 2007
    ISBN: 9780596101060

    Mace Bergmann
    O'Reilly Media Inc.
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly