cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <>
Subject RE: Passing parameter from sitemap to .xsp - everything failes - help ne
Date Tue, 12 Sep 2006 21:00:32 GMT
That's XSP trap #1.  <xsp:logic> inside <xsp:page> generates code in
class scope rather than in method scope.

    Date adate = new Date();
      Date bdate = new Date();

Is something like

Class MyXSP extends XSP {
  Date adate = new Date();
  void generate() {
    print "<page>";
    Date bdate = new Date();
    print "<adate>", adate, "</adate>";
    print "<bdate>", bdate, "</bdate>";
    print "</page>";

Combined with Cocoon's component pooling adate will stay at the time the
page was call first while bdate changes for each update.

HTH, Alfred.

-----Original Message-----
From: jantje [] 
Sent: Dienstag, 12. September 2006 16:13
Subject: Re: Passing parameter from sitemap to .xsp - everything failes
- help ne

Hi, after really trying everything, i have found this:

<?xml version="1.0"?>
<xsp:page language="java"
                int newUserInt = (int)<util:get-sitemap-parameter
                String newUserString =

And it works!!!

Ok, fine for me, but is there someone who knows the solution for the
i had? it would be nice to know the solution :-)

Thanks for your time,
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.

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

View raw message