If I'm understanding you correctly, this is exactly what ExtraPathInfo is
_supposed_ to do. The problem is, I don't think it actually works properly
in Webware CVS (or in release 0.7) and also, it ought to be settable on a
servlet-by-servlet basis instead of being a global all-or-nothing flag.
In you're using Apache, you can get the effect you want with a mod_rewrite
rule that transforms SomeContext/Main/foo/bar/file.ext into
SomeContext/Main?extra=foo/bar/file.ext. Check out the Webware Wiki --
there may already be an example of this in the ModRewriteRecipes section.
There have been various proposals in the past for how to handle URL's more
flexibly but nothing has been done yet. None of the Webware developers have
time to work on this because we're all too busy _using_ Webware :-)
> -----Original Message-----
> From: Mike Warren [mailto:spam@...]
> Sent: Monday, August 12, 2002 5:48 PM
> To: webware-devel@...
> Subject: [Webware-devel] Testing/Servlet/Extra/Path/Info?
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Hi. I'm looking at WebWare (well, WebKit) as a base for Active2
> (http://docs.indymedia.org/twiki/bin/view/Devel/ActiVe2 for more), and
> I am interested in the extra-path-info stuff, I think.
> What I want is (and please point out if there's a better way to do
> If I have an HTTPServlet in, say, SomeContext/Main.py and someone
> requests a URL like SomeContext/Main/foo/bar/file.ext, then presuming
> that no directories exist below SomeContext (i.e. foo/bar/file.ext
> doesn't exist), I still want my HTTPServlet to be given a chance to
> handle the request (and obviously it would need access to at least
> This looks suspiciously like the stuff in Testing (see Subject:), and
> I was wondering: is anyone working on this? (I've checked out the CVS
> code, and it still looks the same).
> If not, I guess I'll just hack in my own stuff, but it might be better
> if this would be useful to WebWare in general. I was thinking:
> . if the Application has decided that it will call handleBadUrl due to
> the file not existing, then it should look backwards down
> the ``bad''
> url until a file with the Right Class defined is found, or
> a directory
> containing (index,Main) with the Right Class defined and call the
> Appropriate Method.
> I don't know what the Right Class or Right Method would be, though, so
> if anyone can provide hints...? (Presumably Servlet and some
> subclass/special Transaction?)
> - --
> mike [at] mike [dash] warren [dot] com
> GPG: 0x579911BD :: 87F2 4D98 BDB0 0E90 EE2A 0CF9 1087 0884 5799 11BD
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard
-----END PGP SIGNATURE-----
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
Webware-devel mailing list