From: Ian B. <ia...@co...> - 2001-07-04 03:40:01
|
Chuck Esterbrook <Chu...@ya...> wrote: > >2. I'd rather pass my "object identifiers" and such > > via url-rewriting instead of a query string. > > How do I do this? i.e. > > > > serve?type=invoice&key=345 -> serve/invoice/345 > > This has been discussed before, but is not currently supported out of the > box. Terrel was the big champion here. See: > http://www.ics.uci.edu/~tshumway/webware/ > > and more specifically: > http://www.ics.uci.edu/~tshumway/webware/urldecode.html > > Obviously, you'll have to do some serious work to get this happening. Of course, there's a much easier hack that works currently. In Webware/WebKit/Configs/Application.config set ExtraPathInfo to 1. Then you can use request().extraURLPath() to get that extra part. Your servlet will have to interpret it however you choose. I use this quite a bit. Ian |