Howdy,
Sure, make BAH a simple web application with just one class, a filter
mapped to url-pattern /* that does a sendRedirect to  / + the rest of
the path.  I don't know if that's simpler than a Valve, but it's
portable.

Apache's mod_rewrite can also do this, but you probably don't want to
add the complexity of an apache-tomcat setup for this reason alone.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Green, Jeffrey [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 08, 2004 10:50 AM
>To: '[EMAIL PROTECTED]'
>Subject: Mapping /BAH/ to /
>
>Hi all.  Quick question regarding Tomcat.  I'd like to create a mapping
>such
>that all requests to
>
>http://hostname:8080/FOO/ <http://hostname:8080/FOO/>   are forwarded
to
>http://hostname:8080/ <http://hostname:8080/>  in a transparent manner
(to
>the user, at least).
>
>Thus, if there is a JSP at http://hostname:8080/FOO/bar/Page.jsp
><http://hostname:8080/FOO/bar/Page.jsp> , users can access it by either
>going to that URL or to this url: http://hostname:8080/bar/Page.jsp
><http://hostname:8080/bar/Page.jsp> .  (Where BAR is the name of the
>webapp).  Does anyone know if / how this can be done?
>
>I know one can implement such functionality using Valves, but I seek a
>simpler solution (if there is one).  Thanks!
>
>-----------------------------------------------------------------------
----
>---
>This message is intended only for the personal and confidential use of
the
>designated recipient(s) named above.  If you are not the intended
recipient
>of
>this message you are hereby notified that any review, dissemination,
>distribution or copying of this message is strictly prohibited.  This
>communication is for information purposes only and should not be
regarded
>as
>an offer to sell or as a solicitation of an offer to buy any financial
>product, an official confirmation of any transaction, or as an official
>statement of Lehman Brothers.  Email transmission cannot be guaranteed
to
>be
>secure or error-free.  Therefore, we do not represent that this
information
>is
>complete or accurate and it should not be relied upon as such.  All
>information is subject to change without notice.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to