From: Eric Hodel Date: 2004-05-24T14:45:54-07:00 Subject: Re: Webrick & HOWTO type docs? --YhFoJY/gx7awiIuK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Kirk Haines (khaines@enigo.com) wrote: > On Mon, 24 May 2004 14:24:50 -0700, Eric Hodel wrote >=20 > > These two questions tell me you have one instance that handles many > > URLs. Instead of handling this in WEBrick, create a servlet that > > handles one level up, and add a dispatcher to it (or inside IOWA, if=20 > > you already have one written). > >=20 > > (Instead of mounting /foo/bar and /foo/baz, mount a servlet at /foo.) >=20 > What I would like to replicate is basically how I have it working with > my mod_ruby handler under Apache. >=20 > Basically, I have a list of paths. IF a request matches one of the > paths in the list, the request goes to Iowa for handling. If not, > then it gets handled by the web server. So, really, I want to mount > /, but then selectively fall through to let something other than the > servlet handle the request. >=20 > If I can do this, then with the ability of Webrick to serve regular > content, an entire application can be handled, along with graphics or > static files, from Webrick. It will make it _extremely_ easy to bring > an Iowa application up. It sounds like a subclass of FileServlet would fit perfectly. If its not in the list of paths, super knows what to do. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --YhFoJY/gx7awiIuK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAsm0SMypVHHlsnwQRAmTOAKC5xaJzRE5HCb48LEFbWq1Lhs/k1QCdFX1K nO+hpgx1kNpvzAXFS954DB8= =q8jX -----END PGP SIGNATURE----- --YhFoJY/gx7awiIuK--