RE: JXTemplate and session beans

2003-06-13 Thread Hugo Burm

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]



Re: JXTemplate and session beans

2003-06-13 Thread JD Daniels
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]



RE: JXTemplate and session beans

2003-06-13 Thread Hugo Burm

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]



Re: JXTemplate and session beans

2003-06-13 Thread JD Daniels
I hear you

Great Wiki... I have spent the last hour messing with it. I had my auth
scheme loading users from mysql using xsp, So I only needed minor changes to
your bean. (The hibernate stuff still has me a little confused tho)

I am thinking that if you are using flow, you are better off keeping
everything as beans. Until, at least, they get the  Flow Object Model hashed
out. (Just my two cents from my first foray into flow)

Hey dev group, Do you have any comments? Am I just not understanding how to
use the existing auth scheme?

Thanks,
JD


- Original Message - 
From: Hugo Burm [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 13, 2003 12:25 PM
Subject: RE: JXTemplate and session beans



 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


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