You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Søren Neigaard <s....@mobilethink.dk> on 2001/11/15 22:02:28 UTC
Include contenf from other XSP
I have read that I can include content from one XSP into another XSP by
saying:
-------------
<util:include-uri href="http://localhost:8080/foo/simple.xml"/>
-------------
But how can I, based on a parameter, choos between two different XSP, like
this pseudo code:
-------------
<xsp:logic>
if(request.getParamter("foo").equals("simple")){
<!-- What to do here? -->
<util:include-uri href="http://localhost:8080/foo/simple.xml"/>
} else {
<!-- What to do here? -->
<util:include-uri href="http://localhost:8080/foo/advanced.xml"/>
}
</xsp:logic>
-------------
So how do I do this? Can I make this happen from wihin my xsp:logic, or
should I do something completly different?
Med venlig hilsen/Best regards
Søren Neigaard
System Architect
................................
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: s.neigaard@mobilethink.dk
Web: www.mobilethink.dk
................................
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>