On Saturday March 16, 2002 10:39 am, Robert F Tobler wrote:
> I am a relative Newbie to Webware, and although I really
> like the concept, I have problems due to the scarce
> documentation. So here is my problem:
>
> I have two servlets, each derived from WebKit.Page.Page,
> located in two directories:
> htdocs/home/Main/index.py
> htdocs/home/Main/Sub/index.py
>
> WebKit 0.7b1 has been set up to serve these servles using
> the following URLs:
> http://server/home.cgi/Main/
> http://server/home.cgi/Main/Sub/
>
> I want tu use Page.callMethodOfServlet() to call
> a method from Sub in Main and vice-versa.
>
> Somehow, the only way this works, is by using relative
> paths:
>       callMethodOfServlet( 'Sub/', method ) # from Main
>       callMethodOfServlet( '../', method ) # from Sub
>
> I'd like to be able to also use "absolute" paths":
>       callMethodOfServlet( '/Main/Sub/', method ) # from Main
>       callMethodOfServlet( '/Main/', method ) # from Sub
>
> [maybe also '/Sub/' and '/' as the absolute paths]

I think this is just a flaw in the implementation of callMethodOfServlet() 
and probably also forward() and includeURL().  They expect relative paths 
only.

I've entered a bug report on SourceForge.

The question is, if you give an absolute path (that starts with '/') should 
it only look in the current Context, or should it follow the regular URL 
decoding strategy and potentially forward into a different context?

And how does this interact with the multiple-application version of WebKit 
which is coming soon after the 0.7 release?

- Geoff

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to