Hi,

>Just to get this straight... can I write a servlet that dynamically
>takes a request and re-maps the target?  I'd expected to be able to do
>that with a valve, but hadn't expected to do so with a servlet.  A
>pointer to the appropriate docs would be much appreciated!

Steve probably had a Filter in mind, not a regular Servlet.  While
higher in portability (but further down the execution pipeline) than a
Servlet, a Filter can be used to redirect requests and responses as
needed.  A Valve is very similar to a Filter conceptually, but is
Tomcat-specific.  In fact Valves were around before Filters, and are now
for the most part not strictly necessary.

However, I think your requirements cannot be met by the current Tomcat
codebase without substantial modifications.  You'd need *at least* a
custom Host (to not use the work directory filestore), a custom Jasper
(for the same purpose), a custom ApplicationDispatcher, a custom
Context, and possibly other components.  As you said in your original
post, "zany" ;)

Yoav



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