cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergio Navarro" <>
Subject Can I access to the requets parameters from tag-lib?
Date Sat, 08 Dec 2001 00:43:12 GMT
Can I access to the requets parameters from  a tag-lib?

I've created a tag-lib: "pccom-util" and inside I need an xsl-variable with
request parameter, to know what xsp code to generate.

I've tried to declare xslt transformer with this line:

but it isn't taken effect with the tag-libs. It seems to be because server
pages generator isn't use this specification for the xslt-transformer that
it employs to apply the tag-lib.

Another solution that I've tried is:


<pccom-util:origenes pagina="ficha">
<xsp:element name="pccom-util:origenDatosFicha">
       <xsp:attribute name="contenido">
            <xsp-request:get-parameter name="contenido"/>
        <xsp:attribute name="id">
           <xsp-request:get-parameter name="id"/></xsp:attribute>

But it fails because I would need to execute 2 times the xsp code.
One to put the request parameter into the attribute of my tag. And another
to execute my tag with these parameters.

Any idea???

THANKS and please be patient with my english

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message