Jaroslaw Zabiello wrote:
> I did some research of Application.py code and I found the solution.
> There is a small problem in resolveInternalRelativePath() function
> which works only with relative paths like 'mypath/myservlet'.
> It does NOT work with absolute paths: /mycontext/mypath/myservlet'
> nor '/mypath/myservlet' nor full URI:
> The solution is to add a small line of code.
> def resolveInternalRelativePath(self, trans, url, context=None): #
> [cut] if context is None: # delete it
> context = req._contextName # delete it
> path = '/%s%s' % (context, url) # delete it
> path = '%s' % (url) # ADD this line
> # [cut]
> Now, I can execute http://localhost/WK/MyContext/first/fake1/fake2.
> This servlet can call the another without any problem. It is done
> using .callMethodOfServlet with '/MyContext/servlets/second' as a path
> (the path should include context name).
> I have no acces to CVS tree. Could anyone fix it?
Could you submit a patch to SourceForge? That's the proper way to track
Did you fix this against Webware 0.8, or against Webware CVS? I think the
code is different. I'm more interested in fixing this against Webware CVS
if it is broken there.
W Friday 15 viii 2003 at 22:57:02
Geoffrey Talvola <gtalvola@...> wrote:
>> I have no acces to CVS tree. Could anyone fix it?
> Could you submit a patch to SourceForge? That's the proper way to track
> these things.
I've just added it.
Get latest updates about Open Source Projects, Conferences and News.