You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matteo Colombo <mt...@inwind.it> on 2001/06/11 19:15:32 UTC
Using auth taglib
Hi,
I'm using auth taglib (http://ulim.cocoonhost.com).
I've a problem to submit you. After authentication I go to reserved.xml that
makes a query, it get two value and put those in the session (with the names
auth:group and auth:role), now I'm trying to retrieve those two in
reserved.xsl (that is a filter applied to reserved.xml) in this way:
<?xml-logicsheet href="../auth.xsp.xsl"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:auth="http://ulim.cocoonhost.com/auth"
xmlns:esql="http://apache.org/cocoon/SQL/v2">
<xsl:variable name="role">
<auth:var name="auth:role"/>
</xsl:variable>
<xsl:variable name="group">
<auth:var name="auth:group"/>
</xsl:variable>
but "$role" e "$group" are empty!!!.
I checked the session, auth:role and auth:group had the right values!!!
What's it wrong? Can I call session parameters from an XSL file?
Please help me
Ciao Matteo
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using auth taglib
Posted by Ulrich Mayring <ul...@denic.de>.
mtcolom@jumpy.it wrote:
>
> -- Messaggio Originale --
>
> >On Mon, 11 Jun 2001, Matteo Colombo wrote:
> >
> >> Hi,
> >> I checked the session, auth:role and auth:group had the right values!!!
> >> What's it wrong? Can I call session parameters from an XSL file?
> >
> >No you can't. In that case you have to encode the params as request
> >parameters and do:
>
> Sorry I'm not very expert with Java: How do you "encode" session params
> as request params?
Read the servlet API and look for request.getParameter, request
parameters are what comes after a regular URL, for example
www.domain.com/index.xml?param=value
cheers,
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using auth taglib
Posted by mt...@jumpy.it.
-- Messaggio Originale --
>On Mon, 11 Jun 2001, Matteo Colombo wrote:
>
>> Hi,
>> I checked the session, auth:role and auth:group had the right values!!!
>> What's it wrong? Can I call session parameters from an XSL file?
>
>No you can't. In that case you have to encode the params as request
>parameters and do:
Sorry I'm not very expert with Java: How do you "encode" session params
as request params?
><xsl:variable name="role"/>
>
>Ulrich
>
>
Thanks Matteo
________________________________________
www.jumpy.com - Internet and email for free in Italy and Spain - Enjoy our community!
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using auth taglib
Posted by Uli Mayring <ul...@denic.de>.
On Mon, 11 Jun 2001, Matteo Colombo wrote:
> Hi,
> I'm using auth taglib (http://ulim.cocoonhost.com).
> I've a problem to submit you. After authentication I go to reserved.xml that
> makes a query, it get two value and put those in the session (with the names
> auth:group and auth:role), now I'm trying to retrieve those two in
> reserved.xsl (that is a filter applied to reserved.xml) in this way:
>
> <?xml-logicsheet href="../auth.xsp.xsl"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:auth="http://ulim.cocoonhost.com/auth"
> xmlns:esql="http://apache.org/cocoon/SQL/v2">
> <xsl:variable name="role">
> <auth:var name="auth:role"/>
> </xsl:variable>
> <xsl:variable name="group">
> <auth:var name="auth:group"/>
> </xsl:variable>
>
> but "$role" e "$group" are empty!!!.
> I checked the session, auth:role and auth:group had the right values!!!
> What's it wrong? Can I call session parameters from an XSL file?
No you can't. In that case you have to encode the params as request
parameters and do:
<xsl:variable name="role"/>
Ulrich
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>