cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: Send Parameter from sitemap to XSP
Date Wed, 30 Jul 2003 16:20:56 GMT
Alexander Schatten wrote:
> Bartłomiej Urbański wrote:
> 
>>
>> sitemap:
>>
>> <map:generate src="example.xsp" type="serverpages">
>>   <map:parameter name="foo" value="bar"/>
>> </map:generate>
>>
>> and xsp:
>>
>> <xsp:logic>
>>   String foo = parameters.getParameter("foo", "");
>> </xsp:logic>
> 
> 
> thank you, this works... unfortunately it still does not solve my 
> problem. the point is, that I need an absolute path in XSP to a 
> directory of a cocoon project; e.g.:
> 
> /usr/cocoon/tomcat/webapps/cocoon/project/upload
> 
> and obviously I do not want to hard-code this path; but I found no 
> solution to get the first part of the path by any cocoon variable; I 
> tried it with the parameter as described above and used the

There is an input module that covers that.  See the demos.  May only be 
in 2.1 but could probably be backported if you're on 2.0.

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message