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 servlet?
> I want that http://localhost/WK/some_handler/foldera/abc/ and
> http://localhost/WK/some_handler/xyz/ will be processed by the same script.
> 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 have
extra stuff after it in the URL, accessible with
request.extraURLPath().  In a directory you can have a Main servlet that
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.

  Ian




-------------------------------------------------------
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
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to