I am using my own bean that I stored in the session. See the Wiki page I
just added about authentication.

I never felt comfortable with the way the authentication and session
frameworks store values in the session. E.g. I had to write some input and
output modules that retreive these "/authentication/data/title" things  and
store them in ordinary session attributes so my Cocoon database actions
could use them. May be I am too stupid to understand the "XML" approach, but
in most cases I always tend to select the Java solution. I know I should
avoid relying on a particular language instead of relying on XML. But
sometimes (in most cases :-( ) there are some deadlines making me a bit
nervous.


Hugo

-----Original Message-----
From: JD Daniels [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:03 PM
To: [EMAIL PROTECTED]
Subject: Re: JXTemplate and session beans


I am trying the same thing, but can't seem to figure it out....

Anyone tell me what would be the equivlent of :

<session:getxml context="authentication" path="/authentication/data/title"/>

??

----- Original Message -----
From: "Hugo Burm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 1:07 AM
Subject: RE: JXTemplate and session beans


>
> With some more trial and error I solved my own problem:
> This is working in a JXTemplate:
>
> You are logged in with id: ${session.getAttribute("usr").id}
>
> (id is one of the properties of the usr bean that was stored in the
session)
> I did not know you can call a java method within the ${}
>
>
> Hugo
>
> -----Original Message-----
> From: Hugo Burm [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 6:44 PM
> To: [EMAIL PROTECTED]
> Subject: JXTemplate and session beans
>
>
>
> How can I access the members of a bean that is stored in the session?
>
> In an action I did something like:
> session.setAttribute("usr",myBean);
>
> And now I am trying to access the members of the bean in a JXTemplate
view.
> I tried $(session.usr.lastname} and #{session/usr/lastname}.
>
> All documentation I found is the Petstore example and the java source of
the
> generator. Did I miss something?
>
> Thanks.
>
> Hugo Burm
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to