You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alexandre Stouffs <al...@oqibo.com> on 2000/08/07 17:28:36 UTC
Re: create-session attribute of xsp:page
Werner,
I think I solved the problem.
Instead of putting the create-session=true in the .xml file, I put it in my
tag library (xsl file).
[..]
<xsl:template match="xsp:page">
<xsp:page create-session = 'true'>
<xsl:copy>
<xsl:apply-templates select="@*"/>
</xsl:copy>
[..]
And I got the session created!
Since I am quite new to xsl, could you please confirm me that it works ok
for your code.
Thank you!
Cheers,
Alex
At 15:49 07.08.2000 +0100, you wrote:
>Alexandre,
>
>unfortunately you are right, indeed, that nobody did have an
>answer/solution to
>my problem with the use of the "create-session" attribute. Apparently, for
>some
>it seems to work, for some it doesn't.
>
>Regards
>Werner
>
>PS What I really do not like is the replication of the
><xsp:logic>...</xsp:logic> block to each and every page .. :-(.
>
>Alexandre Stouffs wrote:
>
> > Hello,
> >
> > I am having the same problem as you in my tag library. Since no on seems to
> > have answered your question on the mailing list, I wondered if you have
> been
> > able to solve this problem.
> >
> > Thank you.
> > Alex
> >
> > -----Original Message-----
> > From: Werner Guttmann [mailto:Werner.Guttmann@msdw.com]
> > Sent: jeudi, 13. juillet 2000 16:25
> > To: cocoon-users@xml.apache.org
> > Subject: Re: create-session attribute of xsp:page
> >
> > Hello,
> >
> > thanks for the tip ... didn't make any difference, though. I guess for the
> > time being I'll
> > resort to using a more manual approach ... ;-(.
> >
> > Regards
> > Werner
> >
> > I-Chung Young wrote:
> >
> > > On Thu, 13 Jul 2000, Werner Guttmann wrote:
> > >
> > > > So has anybody already used the session-create attribute of <xsp:page>
> > sucessfully ?
> > > >
> > > I am using it in my project. It seems to be fine.
> > > The only difference from your example is that I put the
> > > create-session as the last attribute in <xsp:page> rather
> > > than before the xmlns'.
> > >
> > > If nothing works, you can always use <xsp:logic> in
> > > your page. The following code serve the same purpose as
> > > create-session=true:
> > >
> > > <xsp:logic>
> > > if (session == null) {
> > > session = request.getSession();
> > > }
> > > </xsp:logic>
> > >
> > > Hope this helps.
> > > ------------
> > > I-Chung Young
> > > ichung@puma.mt.att.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org