With any luck, they point to the same namespace.
The uri is the namespace-- not the prefix.

whatever the prefix is,
it just needs to match "http://apache.org/xsp/session/2.0"; i think.


I think cocoon1 tended to use request:whatever and session:whatever,
but that wouldn't have anything to do with your problem.  Actually, i
use session in my xsp's too instead of xsp-session.  I think the sample
was written using session as the prefix.  the logic sheet happens to use
xsp-session.  It makes no difference.

Tim


On Tue, Mar 12, 2002 at 01:43:08PM +0100, Christian Joelly wrote:
> Hi Tim!
> 
> On Tue, Mar 12, 2002 at 05:35:41AM -0500, Tim Myers wrote:
> > 
> > I can't find XSPRequestHelper.setSessionAttribute
> > 
> > I haven't update cvs in more than a week,
> > but here's what i see in the relavent template:
> > 
> >   <xsl:template match="xsp-session:set-attribute">
> >     <xsl:variable name="name">
> >       <xsl:call-template name="value-for-name"/>
> >     </xsl:variable>
> >     <xsl:variable name="content">
> >       <xsl:call-template name="get-nested-content">
> >         <xsl:with-param name="content" select="."/>
> >       </xsl:call-template>
> >     </xsl:variable>
> >     <xsp:logic>
> >       request.getSession().setAttribute(
> >           String.valueOf(<xsl:copy-of select="$name"/>),
> >           <xsl:copy-of select="$content"/>);
> >     </xsp:logic>
> >   </xsl:template>
> > 
> > You certainly should be able to set session attributes.  Try putting
> > ( ) around sReport like <xsp:expr>(sReport)</xsp:expr>
> > 
> > I'm not promising anything, but it works for me.
> 
> hmm. i tried the following:
> 
> <session:set-attribute name="report">
>       <xsp:content><xsp:expr>sReport</xsp:expr></xsp:content>
> </session:set-attribute>
> 
> and it also works :o) 
> 
> BUT: i have the following template:
> 
> <xsl:template match="session:set-attribute">
>     <xsl:variable name="name">
>               <xsl:call-template name="value-for-name"/>
>       </xsl:variable>
> 
>       <xsl:variable name="content">
>               <xsl:call-template name="get-nested-content">
>                       <xsl:with-param name="content" select="."/>
>               </xsl:call-template>
>       </xsl:variable>
> 
>       <xsp:logic>
>               XSPRequestHelper.setSessionAttribute(objectModel,
>               String.valueOf(<xsl:copy-of select="$name"/>),
>               <xsl:copy-of select="$content"/>
>               );
>       </xsp:logic>
> </xsl:template>
> 
> 
> whats the difference between "xsp-session" and "session"? are this only
> different named xml namespaces or different taglibs?  (#+?§$%& ;))
> 
> Chris
> 
> btw: the version of cocoon i use is the distribution 2.0.1 dated 31-Jan-2002.
> 
> -- 
> KNAPP Logistics Automation  http://www.knapp.com
> Ing. Christian Jölly        Tel/FAX: (++43) 316 / 495 1926 / 495 394
> Günter-Knapp-Straße 5-7     A-8075 Hart bei Graz
> 



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to