cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bert Van Kets <b...@visitronics.be>
Subject Re: S: XSP and map:parameter
Date Thu, 04 Apr 2002 07:33:53 GMT
Here's a snip from a page that does exactly what you want

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp" 
xmlns:esql="http://apache.org/cocoon/SQL/v2">
   <data>
     <xsp:logic>
     String myParam = "";

     <!-- get the parameter from sitemap -->
     try{
       myParam = parameters.getParameter("formName");
     }
     catch (Exception e)
     {}
     </xsp:logic>
   </data>
</xsp:page>

Note that I request the parameter inside the data tag.  Everything directly 
below the xsp:page tag is on class level, not page level.

HTH,
Bert

At 09:19 4/04/2002 +0200, you wrote:
>Hello NG,
>
>I'm looking for a way to request in a XSP
>the value of a parameter defined in the sitemap:
>
><map:generate src="rc/xsp/request.xsp" type="serverpages">
>     <map:parameter name="dynamic_incude"
>                    value="{1}"/>
></map:generate>
>
>Any hints ?
>
>Thx, Mathias
>
>--
>Mathias Ochsendorf
>www: www.ochsendorf.net | www.ochsendorf.de
>ICQ: 68556900
>
>
>---------------------------------------------------------------------
>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: <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message