Re: Servlet Filters - Apache Mod_Rewrite

2000-09-28 Thread Joel Shellman

Mike Cannon-Brookes wrote:
 
 Guys,
 
 Has anyone thought of writing a Mod_Rewrite clone using Servlet Filters?
 Using something like the Jakarta ORO regex package this should be quite
 doable?
 
 Any reason that wouldn't work? (I've never actually used Mod_Rewrite, just
 read about it).
 
 Mike

Yes, we've thought of it. We created a "SuperServlet" that is set up as
a filter and handles all requests, handing off the requests to the
appropriate code based on some parsing, etc.

We didn't clone mod_rewrite, we just did the pattern matching that we
specifically needed.
-- 
Joel Shellman
Chief Software Architect
http://www.ants.com/90589781




Re: Servlet Filters - Apache Mod_Rewrite

2000-09-28 Thread Joe Walnes

 Has anyone thought of writing a Mod_Rewrite clone using Servlet Filters?
 Using something like the Jakarta ORO regex package this should be quite
 doable?

 Any reason that wouldn't work? (I've never actually used Mod_Rewrite, just
 read about it).

I've done something similar, but filters are not required. Simply create a
servlet that sends appropriate redirects then use servlet-mappings to
assign it to URL's.

-Joe Walnes