You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rick Tessner <ri...@dingle.myra.com> on 2001/01/13 08:34:58 UTC
[C2] : Odd behaviour getting the requested URL in XSP
Hello All!
I'm seeing some odd behaviour when trying to grab the
request URL within an XSP page.
I thot at first that it might be my servlet engine (I'm
using Resin), but I have other servlets using the
HttpUtils.getRequestURL( request );
and it's working just fine.
What I'm finding is that if I request:
http://myhost.com:8080/cocoon/xsp/simple
and have in my XSP sheet
<xsp:expr> HttpUtils.getRequestURL( this.request ).toString() </xsp:expr>
I end up getting
http://myhost.com:8080xsp/simple
Basically, it's got everthing except for the getContextPath() of
the request. Is anyone else seeing this behaviour??
I've attached a patch for the "webapp/docs/samples/xsp/simple.xsp"
for those that are interest in trying this out.
I'm running under
Cocoon2 from CVS as of 2000/01/12
Solaris 2.7 (and 2.6)
Resin 1.2.1
JDK 1.3
Apache 1.3.14