cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boon Hian Tek <>
Subject Re: Help with serverpages generator.
Date Mon, 28 Apr 2003 14:36:27 GMT
On Mon, 28 Apr 2003 07:36:21 -0400, Geoff Howard <> 

> Give more info on what you're doing in your XSP, and
> what version you're using.
> Geoff

I am using the XSP to read a Java object from the HttpSession, and then
using that variable to fill in parameters in a SQL that will be passed
to a SQL transformer.

	  <map:match pattern="{1}/view/Show[:punct:]*([0-9]*)[:punct:]*">
          <map:generate type="ncserverpages" src="sql/view/img/all.xsp"/>
          <map:transform type="psql">
            <map:parameter name="use-connection" value="photo"/>
            <map:parameter name="show-nr-of-rows" value="true"/>
            <map:parameter name="page-size" value="10"/>
            <map:parameter name="current-page" value="{1}"/>
            <map:parameter name="pagesheet-source" 
          <map:act type="request">
            <map:transform src="stylesheets/view/pic/display-all.xsl">
              <map:parameter name="requestURI" value="{requestURI}"/>
            <map:transform src="stylesheets/page/simple-page2html.xsl">
              <map:parameter name="app-context" value="{context}"/>
              <map:parameter name="requestURI" value="{requestURI}"/>
            <map:transform type="session"/>
          <map:transform src="stylesheets/page/simple-pagination.xsl"/>

all.xsp - contains the code to read from session
i tried doing the above, (commenting everything out post the generation),
and I find that no matter what is in the session, the result coughed
out by the generator remains the same until I restart cocoon.

I am using 2.1 CVS head.


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

View raw message