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: [EMAIL PROTECTED]
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to