Hi Stavros
Try this:
<jx:set var="path"
value="${cocoon.parameters.contextPath.concat('myapp/')}"/>
or alternatively you could use the '+' operator which is overloaded by the
Jexl expression language
to be used for String concatenation.
Jexl allows you to access bean properties using dot notation, the String
concatenation
expression needs to be contained within the curly brackets to be evaluated
by the parser.
Cheers
Adam
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, 31 December 2004 5:11 a.m.
To: [email protected]
Subject: set variable in jx generator file
hi all
some hours before the new year i decide to take a look at jx generator
my qustion is if it's possible to have something like this
<jx:set var="path"
value="${parameters.getParameter('contextPath')}+'myapp/'"/>
so the ${path} can be used after this set in the xml document?
regards
--stavros
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]