cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Gaffga" <cgaf...@triplemind.com>
Subject [C2] use-request-parameters=true
Date Fri, 13 Jul 2001 13:24:12 GMT
I'm using cocoon 2.1-dev (12.07.2001).
I want to use the request in a dynamic generated Stylesheet using the
following sitemap:

   <map:match pattern="test.xsl">
     <map:generate type="serverpages" src="stylesheet.xsp"/>
     <map:serialize type="xml"/>
   </map:match>

   <map:match pattern="test.html">
    <map:generate type="serverpages" src="page.xsp"/>
    <map:transform src="cocoon://test.xsl">
      <map:parameter name="use-request-parameters" value="true"/>
    </map:transform>
    <map:serialize type="html"/>
   </map:match>

I have the following im my stylesheet.xsp for testing:

    Request Parameter:
    <ul><xsp:logic>
    {
      java.util.Enumeration x = request.getParameterNames();
      while(x.hasMoreElements()) {
        String s = (String) x.nextElement();
        <xsp:content>
          <li><xsp:expr>s</xsp:expr> =
<xsp:expr>request.getParameter(s)</xsp:expr></li>
        </xsp:content>
      }
    }
    </xsp:logic></ul>

But there are no parameters outputted! Is it a bug or my mistake?
Please help.

Christoph Gaffga



---------------------------------------------------------------------
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