You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Marcus Crafter <cr...@fztig938.bank.dresdner.net> on 2001/05/21 18:12:57 UTC
[C2] xsp:request context patch
Hi All,
Hope all is well around the C2 globe!
Attached is a patch that adds support for accessing the context path
from the request object via the xsp-request markup stylesheet.
eg:
<information><xsp-request:get-context-path/></information>
yields:
<information>/context-path-to-webapp</information>
It simply calls the getContextPath method on the Request object (via
the XSPRequestHelper object).
I'm using this functionality to build up src attributes for frames
within some xsp so that they're not dependant on a fixed webapp
context.
eg:
<xsp:element name="frame">
<xsp:attribute name="src"><xsp-request:get-context-path/>/dir/file.html</xsp:attribute>
<xsp:attribute name="name">_text</xsp:attribute>
</xsp:element>
Perhaps it's of use elsewhere too.
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: Open Software Associates GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&' Email : Marcus.Crafter@osa.de
&&&&. Business Hours : +49 69 9757 200
&&&&&&&: After Hours : +49 69 49086750