On 28.08.2005 23:08, [EMAIL PROTECTED] wrote:
I'm trying to call this from an XSP logicsheet :
StringBuffer URL = HttpUtils.getRequestURL(request);
... but I get this error :
/ start error (lines 195-195) "The method
getRequestURL(HttpServletRequest) in the type HttpUtils is not applicable
for the arguments (Request)"
StringBuffer URL = HttpUtils.getRequestURL(request);
I don't get it, isn't the request an HtttpServletRequest object ? How can
I get the URL from an XSP page ??
The Cocoon Request is not an instance of the HttpServletRequest, but in
case of HTTP environment a wrapper for it. To get what you want you
probably just need getRequestURI() on Cocoon's Request interface.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]