Jim Preston wrote:
> Actually, I believe you CAN configure the web server so that
> all requests for a "*.jsp" will be routed through a servlet
> of your choice first. I was just reading about this in Jason
> Hunter's Servlets book, but unfortunately I left it at home
> today. If you have the book, look it up, I think it's in the
> section about servlet aliases. If no one else posts more on
> this by tomorrow, I'll bring the book in and provide some
> details.

I don't have Jason Hunter's Servlets book, so I'd appreciate it if you could
describe how this could be done.

> Assuming that this does work, the potential downside is that
> it's a totally all-or-nothing solution; all JSPs will go
> through your servlet, and so you'll either have to do that
> post- and pre-processing for all JSPs that are ever served,
> or you'll have to have some logic in your servlet to
> determine which ones need it and which ones don't. This might
> be great for your environment, if you have total control over
> the server and all JSPs, but it's not a very general solution.

In order to mitigate the all-or-nothing issue, I am hopeful that the web
server could be configured to only route JSPs in a specific path to go
through my "JSP wrapper" servlet.  For instance, "http://host/foo/a.jsp"
would go through my JSP wrapper servlet, whereas "http://host/bar/a.jsp"
would not.  This is do-able with JRun for servlet processing, so maybe we
could do the same for JSP processing.

--
Stephen A. Williams
HNC Telecommunications Solutions

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to