XSP can add dynamic attributes, just like XSL with its <xsl:attribute>, but here it's <xsp:attribute> :).
Try this :
<cinclude:include> <xsp:attribute name="src"><xsp:expr>page</xsp:expr></xsp:attribute> </cinclude:include>
-- Olivier
On 01/11/2003 20:48, Jan Wielgus wrote:
Hello,
I want to do something like this: I want to include a page in my main page depending on a request parameter:
<xsp:logic>
String page = <xsp-request:get-parameter name="page"/>;
if(page==null || page=="") page =
"cocoon:/pagecontent/kategorien.xsp";
</xsp:logic>
But then I have a problem. How can I pass the variable 'page' to the <cinclude>-tag?
<cinclude:include src=" <-- here I don't know how to do it :((
Any help will be appreciated
Regards
Jan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]