You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Olivier Billard <ob...@rennes.jouve.fr> on 2003/05/23 16:17:56 UTC

Transformer for adding/changing/deleting session attributes ?

Hi all !

I'm looking for a transformer, or anything else, doing stuffs of my mail
subject. XSP excluded.
I looked the SessionTransformer, but no doc, and I don't know if it is doing
these things...

Thanks in advance !

--
Olivier


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Hi Luca,

THAT is exactly what I was looking for...
Thanks a lot !

I didn't know what are Input modules, now I'm well served :) !!

Thanks again !

--
Olivier


----- Original Message ----- 
From: "Luca Morandini" <lu...@tin.it>
To: <co...@xml.apache.org>
Sent: Friday, May 23, 2003 7:25 PM
Subject: Re: Transformer for adding/changing/deleting session attributes ?


> Olivier Billard wrote:
> > It is interesting, but doesn't seem to reach my needs.
> > I don't know if it exists a mecanism similar to {request-param:myparam}
with
> > the session ?
> > I know there is some {session:...} stuffs, but I don't have a list and
can't
> > find it. Eyes or brain maybe tired ;)
> >
> > Does it exist ?
>
> session-attr maybe ?
>
> Used as in:
>        <map:match pattern="content/session-attr.xsp">
>          <map:generate type="serverpages" src="properties.xsp">
>            <map:parameter name="fruit" value="{session-attr:fruit}"/>
>
>          </map:generate>
>          <map:transform src="properties2html.xsl">
>            <map:parameter name="title" value="Session Attribute Input
Module
>              (SessionAttributeModule)"/>
>            <map:parameter name="description"
> value="SessionAttributeModule provides access
>              to Session attributes."/>
>          </map:transform>
>          <map:serialize />
>        </map:match>
>
> Regards,
>
> ------------------------------------------
>                 Luca Morandini
>                 GIS Consultant
>                lmorandini@ieee.org
> http://space.virgilio.it/kumora/index.html
> ------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> 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


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Luca Morandini <lu...@tin.it>.
Olivier Billard wrote:
> It is interesting, but doesn't seem to reach my needs.
> I don't know if it exists a mecanism similar to {request-param:myparam} with
> the session ?
> I know there is some {session:...} stuffs, but I don't have a list and can't
> find it. Eyes or brain maybe tired ;)
> 
> Does it exist ?

session-attr maybe ?

Used as in:
       <map:match pattern="content/session-attr.xsp">
         <map:generate type="serverpages" src="properties.xsp">
           <map:parameter name="fruit" value="{session-attr:fruit}"/> 

         </map:generate>
         <map:transform src="properties2html.xsl">
           <map:parameter name="title" value="Session Attribute Input Module
             (SessionAttributeModule)"/>
           <map:parameter name="description" 
value="SessionAttributeModule provides access
             to Session attributes."/>
         </map:transform>
         <map:serialize />
       </map:match>

Regards,

------------------------------------------
                Luca Morandini
                GIS Consultant
               lmorandini@ieee.org
http://space.virgilio.it/kumora/index.html
------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Hi Alex,

The portal framework seems to use extensively filesytem to store things
relative to the user.
But for performances, and because I have few information to store, and also
because I want it to be easily accessible from the sitemap, I prefer to use
session attributes, accessible with {session-attr:myAttr} anywhere in the
sitemap.

To store these, I wrote a small Action.
Thanks for your help !

--
Olivier

----- Original Message ----- 
From: "Alex Romayev" <ro...@yahoo.com>
To: <co...@xml.apache.org>; "Olivier Billard" <ob...@jouve.fr>
Sent: Friday, May 23, 2003 6:17 PM
Subject: Re: Transformer for adding/changing/deleting session attributes ?


> Oliver,
>
> Have you looked into the portal framework?  Getting
> information based on user profile is what it's very
> good at.
>
> Anyway, enjoy your weekend.  I won't be back until
> Tuesday.
>
> Cheers,
> -Alex
>
> --- Olivier Billard <ob...@rennes.jouve.fr> wrote:
> > Hi Alex,
> >
> > I need to select a resource, which name depends on
> > the user profile. But the
> > pipelines using it could be outside auth-fw actions,
> > in an internal
> > pipeline. A solution could be adding the profile in
> > the URL, but it is not
> > as "elegant" as storing and accessing it in the
> > session.
> >
> > I looked in the samples, but didn't find it...
> > I'll see it next monday... time to go !
> >
> > Have a nice week end and thanks again !
> >
> > --
> > Olivier
> >
> >
> > ----- Original Message ----- 
> > From: "Alex Romayev" <ro...@yahoo.com>
> > To: <co...@xml.apache.org>; "Olivier Billard"
> > <ob...@jouve.fr>
> > Sent: Friday, May 23, 2003 6:03 PM
> > Subject: Re: Transformer for
> > adding/changing/deleting session attributes ?
> >
> >
> > > Hi Oliver,
> > >
> > > One place I remember seeing session and
> > session-attr
> > > InputModules is in the samples, depending on your
> > > setup it should be something like:
> > >
> > >
> >
> http://localhost:8080/cocoon/samples/modules/index.xsp
> > >
> > > Why do you need to access user profle is the
> > sitemap?
> > >
> > > -Alex
> > >
> > > --- Olivier Billard <ob...@rennes.jouve.fr>
> > wrote:
> > > > Hi Alex !
> > > >
> > > > Thanks for your answer.
> > > > It is interesting, but doesn't seem to reach my
> > > > needs.
> > > > I don't know if it exists a mecanism similar to
> > > > {request-param:myparam} with
> > > > the session ?
> > > > I know there is some {session:...} stuffs, but I
> > > > don't have a list and can't
> > > > find it. Eyes or brain maybe tired ;)
> > > >
> > > > Does it exist ?
> > > >
> > > > I'm using the authentication framework, and I
> > regret
> > > > that user profile for
> > > > exemple, is only accessible via the Map object
> > of an
> > > > action in the sitemap
> > > > or accessible elsewhere via XSP and
> > > > <session:get-xml...> ... Do you have a
> > > > better idea ?
> > > >
> > > > Thanks in advance !!
> > > >
> > > > --
> > > > Olivier
> > > >
> > > >
> > > > ----- Original Message ----- 
> > > > From: "Alex Romayev" <ro...@yahoo.com>
> > > > To: <co...@xml.apache.org>; "Olivier
> > Billard"
> > > > <ob...@jouve.fr>
> > > > Sent: Friday, May 23, 2003 4:23 PM
> > > > Subject: Re: Transformer for
> > > > adding/changing/deleting session attributes ?
> > > >
> > > >
> > > > > Have you seen this?
> > > > >
> > > > >
> > > >
> > >
> >
> http://cocoon.apache.org/2.1/developing/webapps/session.html
> > > > >
> > > > > --- Olivier Billard <ob...@rennes.jouve.fr>
> > > > wrote:
> > > > > > Hi all !
> > > > > >
> > > > > > I'm looking for a transformer, or anything
> > else,
> > > > > > doing stuffs of my mail
> > > > > > subject. XSP excluded.
> > > > > > I looked the SessionTransformer, but no doc,
> > and
> > > > I
> > > > > > don't know if it is doing
> > > > > > these things...
> > > > > >
> > > > > > Thanks in advance !
> > > > > >
> > > > > > --
> > > > > > Olivier
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > > 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
> > > >
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > 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
> >
>
>
> ---------------------------------------------------------------------
> 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


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Alex Romayev <ro...@yahoo.com>.
Oliver,

Have you looked into the portal framework?  Getting
information based on user profile is what it's very
good at.

Anyway, enjoy your weekend.  I won't be back until
Tuesday.

Cheers,
-Alex

--- Olivier Billard <ob...@rennes.jouve.fr> wrote:
> Hi Alex,
> 
> I need to select a resource, which name depends on
> the user profile. But the
> pipelines using it could be outside auth-fw actions,
> in an internal
> pipeline. A solution could be adding the profile in
> the URL, but it is not
> as "elegant" as storing and accessing it in the
> session.
> 
> I looked in the samples, but didn't find it...
> I'll see it next monday... time to go !
> 
> Have a nice week end and thanks again !
> 
> --
> Olivier
> 
> 
> ----- Original Message ----- 
> From: "Alex Romayev" <ro...@yahoo.com>
> To: <co...@xml.apache.org>; "Olivier Billard"
> <ob...@jouve.fr>
> Sent: Friday, May 23, 2003 6:03 PM
> Subject: Re: Transformer for
> adding/changing/deleting session attributes ?
> 
> 
> > Hi Oliver,
> >
> > One place I remember seeing session and
> session-attr
> > InputModules is in the samples, depending on your
> > setup it should be something like:
> >
> >
>
http://localhost:8080/cocoon/samples/modules/index.xsp
> >
> > Why do you need to access user profle is the
> sitemap?
> >
> > -Alex
> >
> > --- Olivier Billard <ob...@rennes.jouve.fr>
> wrote:
> > > Hi Alex !
> > >
> > > Thanks for your answer.
> > > It is interesting, but doesn't seem to reach my
> > > needs.
> > > I don't know if it exists a mecanism similar to
> > > {request-param:myparam} with
> > > the session ?
> > > I know there is some {session:...} stuffs, but I
> > > don't have a list and can't
> > > find it. Eyes or brain maybe tired ;)
> > >
> > > Does it exist ?
> > >
> > > I'm using the authentication framework, and I
> regret
> > > that user profile for
> > > exemple, is only accessible via the Map object
> of an
> > > action in the sitemap
> > > or accessible elsewhere via XSP and
> > > <session:get-xml...> ... Do you have a
> > > better idea ?
> > >
> > > Thanks in advance !!
> > >
> > > --
> > > Olivier
> > >
> > >
> > > ----- Original Message ----- 
> > > From: "Alex Romayev" <ro...@yahoo.com>
> > > To: <co...@xml.apache.org>; "Olivier
> Billard"
> > > <ob...@jouve.fr>
> > > Sent: Friday, May 23, 2003 4:23 PM
> > > Subject: Re: Transformer for
> > > adding/changing/deleting session attributes ?
> > >
> > >
> > > > Have you seen this?
> > > >
> > > >
> > >
> >
>
http://cocoon.apache.org/2.1/developing/webapps/session.html
> > > >
> > > > --- Olivier Billard <ob...@rennes.jouve.fr>
> > > wrote:
> > > > > Hi all !
> > > > >
> > > > > I'm looking for a transformer, or anything
> else,
> > > > > doing stuffs of my mail
> > > > > subject. XSP excluded.
> > > > > I looked the SessionTransformer, but no doc,
> and
> > > I
> > > > > don't know if it is doing
> > > > > these things...
> > > > >
> > > > > Thanks in advance !
> > > > >
> > > > > --
> > > > > Olivier
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > 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
> > >
> >
> >
> >
>
---------------------------------------------------------------------
> > 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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Hi Alex,

I need to select a resource, which name depends on the user profile. But the
pipelines using it could be outside auth-fw actions, in an internal
pipeline. A solution could be adding the profile in the URL, but it is not
as "elegant" as storing and accessing it in the session.

I looked in the samples, but didn't find it...
I'll see it next monday... time to go !

Have a nice week end and thanks again !

--
Olivier


----- Original Message ----- 
From: "Alex Romayev" <ro...@yahoo.com>
To: <co...@xml.apache.org>; "Olivier Billard" <ob...@jouve.fr>
Sent: Friday, May 23, 2003 6:03 PM
Subject: Re: Transformer for adding/changing/deleting session attributes ?


> Hi Oliver,
>
> One place I remember seeing session and session-attr
> InputModules is in the samples, depending on your
> setup it should be something like:
>
> http://localhost:8080/cocoon/samples/modules/index.xsp
>
> Why do you need to access user profle is the sitemap?
>
> -Alex
>
> --- Olivier Billard <ob...@rennes.jouve.fr> wrote:
> > Hi Alex !
> >
> > Thanks for your answer.
> > It is interesting, but doesn't seem to reach my
> > needs.
> > I don't know if it exists a mecanism similar to
> > {request-param:myparam} with
> > the session ?
> > I know there is some {session:...} stuffs, but I
> > don't have a list and can't
> > find it. Eyes or brain maybe tired ;)
> >
> > Does it exist ?
> >
> > I'm using the authentication framework, and I regret
> > that user profile for
> > exemple, is only accessible via the Map object of an
> > action in the sitemap
> > or accessible elsewhere via XSP and
> > <session:get-xml...> ... Do you have a
> > better idea ?
> >
> > Thanks in advance !!
> >
> > --
> > Olivier
> >
> >
> > ----- Original Message ----- 
> > From: "Alex Romayev" <ro...@yahoo.com>
> > To: <co...@xml.apache.org>; "Olivier Billard"
> > <ob...@jouve.fr>
> > Sent: Friday, May 23, 2003 4:23 PM
> > Subject: Re: Transformer for
> > adding/changing/deleting session attributes ?
> >
> >
> > > Have you seen this?
> > >
> > >
> >
> http://cocoon.apache.org/2.1/developing/webapps/session.html
> > >
> > > --- Olivier Billard <ob...@rennes.jouve.fr>
> > wrote:
> > > > Hi all !
> > > >
> > > > I'm looking for a transformer, or anything else,
> > > > doing stuffs of my mail
> > > > subject. XSP excluded.
> > > > I looked the SessionTransformer, but no doc, and
> > I
> > > > don't know if it is doing
> > > > these things...
> > > >
> > > > Thanks in advance !
> > > >
> > > > --
> > > > Olivier
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > 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
> >
>
>
> ---------------------------------------------------------------------
> 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


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Alex Romayev <ro...@yahoo.com>.
Hi Oliver,

One place I remember seeing session and session-attr
InputModules is in the samples, depending on your
setup it should be something like:

http://localhost:8080/cocoon/samples/modules/index.xsp

Why do you need to access user profle is the sitemap?

-Alex

--- Olivier Billard <ob...@rennes.jouve.fr> wrote:
> Hi Alex !
> 
> Thanks for your answer.
> It is interesting, but doesn't seem to reach my
> needs.
> I don't know if it exists a mecanism similar to
> {request-param:myparam} with
> the session ?
> I know there is some {session:...} stuffs, but I
> don't have a list and can't
> find it. Eyes or brain maybe tired ;)
> 
> Does it exist ?
> 
> I'm using the authentication framework, and I regret
> that user profile for
> exemple, is only accessible via the Map object of an
> action in the sitemap
> or accessible elsewhere via XSP and
> <session:get-xml...> ... Do you have a
> better idea ?
> 
> Thanks in advance !!
> 
> --
> Olivier
> 
> 
> ----- Original Message ----- 
> From: "Alex Romayev" <ro...@yahoo.com>
> To: <co...@xml.apache.org>; "Olivier Billard"
> <ob...@jouve.fr>
> Sent: Friday, May 23, 2003 4:23 PM
> Subject: Re: Transformer for
> adding/changing/deleting session attributes ?
> 
> 
> > Have you seen this?
> >
> >
>
http://cocoon.apache.org/2.1/developing/webapps/session.html
> >
> > --- Olivier Billard <ob...@rennes.jouve.fr>
> wrote:
> > > Hi all !
> > >
> > > I'm looking for a transformer, or anything else,
> > > doing stuffs of my mail
> > > subject. XSP excluded.
> > > I looked the SessionTransformer, but no doc, and
> I
> > > don't know if it is doing
> > > these things...
> > >
> > > Thanks in advance !
> > >
> > > --
> > > Olivier
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > 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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Hi Alex !

Thanks for your answer.
It is interesting, but doesn't seem to reach my needs.
I don't know if it exists a mecanism similar to {request-param:myparam} with
the session ?
I know there is some {session:...} stuffs, but I don't have a list and can't
find it. Eyes or brain maybe tired ;)

Does it exist ?

I'm using the authentication framework, and I regret that user profile for
exemple, is only accessible via the Map object of an action in the sitemap
or accessible elsewhere via XSP and <session:get-xml...> ... Do you have a
better idea ?

Thanks in advance !!

--
Olivier


----- Original Message ----- 
From: "Alex Romayev" <ro...@yahoo.com>
To: <co...@xml.apache.org>; "Olivier Billard" <ob...@jouve.fr>
Sent: Friday, May 23, 2003 4:23 PM
Subject: Re: Transformer for adding/changing/deleting session attributes ?


> Have you seen this?
>
> http://cocoon.apache.org/2.1/developing/webapps/session.html
>
> --- Olivier Billard <ob...@rennes.jouve.fr> wrote:
> > Hi all !
> >
> > I'm looking for a transformer, or anything else,
> > doing stuffs of my mail
> > subject. XSP excluded.
> > I looked the SessionTransformer, but no doc, and I
> > don't know if it is doing
> > these things...
> >
> > Thanks in advance !
> >
> > --
> > Olivier
> >
> >
> >
> ---------------------------------------------------------------------
> > 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


Re: Transformer for adding/changing/deleting session attributes ?

Posted by Alex Romayev <ro...@yahoo.com>.
Have you seen this?

http://cocoon.apache.org/2.1/developing/webapps/session.html

--- Olivier Billard <ob...@rennes.jouve.fr> wrote:
> Hi all !
> 
> I'm looking for a transformer, or anything else,
> doing stuffs of my mail
> subject. XSP excluded.
> I looked the SessionTransformer, but no doc, and I
> don't know if it is doing
> these things...
> 
> Thanks in advance !
> 
> --
> Olivier
> 
> 
>
---------------------------------------------------------------------
> 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