On 3/27/07, Mike Quilleash <[EMAIL PROTECTED]> wrote:
Thanks for the reply.

*I* don't want to use contexts but I'm sure some of our difficult
clients will ;)  Is virtual hosts Tomcat specific as we potentially need
to support other web containers too which might not have virtual host
capability.  Is is part of the servlet specification or just a Tomcat
specific feature?

You're welcome.

Virtual Hosts are in the Servlet 2.4 Specification under
section SRV.3.6 Multiple Hosts and Servlet Contexts

So they may be supported by other web containers besides Tomcat. But I
don't have a list of which web containers do and which don't.

But if your clients do insist on multiple Contexts, then there's no
need to use virtual hosts :-) , but I just wanted to let you know
about this option incase you didn't consider it already.

Another option is to use the JSTL 1.1.x c:url tag --- with this tag
there's no need to explicitly specify the Context.

For example:

<c:url var="myImage" value="/images/AZWL.gif"/>
<br/><br/>
${myImage}

The above prints /Context/images/AZWL.gif

In case you treat your CSS as a JSP file then , where ever you specify
the URL you would specify ${myImage}

-Rashmi


Thanks.

Mike.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to