from WebKit.Page import Page
def handle(self, path):
# do stuff with path
def __init__ (self):
self.handler = Main()
def writeContent (self):
# now, http://localhost/WK/Section/foldera/abc
# will write out '/foldera/abc'
On Wednesday, April 2, 2003, at 12:23 PM, Ian Bicking wrote:
> On Wed, 2003-04-02 at 07:35, Achim Domma (ProCoders) wrote:
>> assume http://localhost/WK/ points to my webkit instance. Is it
>> possible to
>> map every url below http://localhost/WK/some_handler to one single
>> I want that http://localhost/WK/some_handler/foldera/abc/ and
>> http://localhost/WK/some_handler/xyz/ will be processed by the same
>> The output will be generated depending on the parameter 'abc' or
>> 'xyz'. Is
>> that possible at all?
> Assuming you are using 0.8 (it's somewhat different in CVS), you must
> set ExtraPathInfo to 1 in Application.config. Then any servlet can
> extra stuff after it in the URL, accessible with
> request.extraURLPath(). In a directory you can have a Main servlet
> will be a catch-all, so if to access /WK/whatever, and there's no
> "whatever" servlet, but there is a Main, then Main will be called with
> "/whatever" as the extraURLPath.
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> Webware-discuss mailing list