cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject [C2] xsp:request context patch
Date Mon, 21 May 2001 16:12:57 GMT
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

Mime
View raw message