Because I am not using any User stuff in my code (waiting for
Torque/users/security to all play nice :-)) and don't really have a  real
need for user stuff, I am using this:
data.getSession().setAttribute( "audit_context", context );

However, it means that I have to think about the context name being used.
I guess I could add a pulltool that picks up the name of the action and uses
that as part of the key..  I was hoping someone has had this problem and
solved it already!

Eric

-----Original Message-----
From: Scott Eade [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 8:56 AM
To: turbine-user
Subject: Re: Question about storing context data..


> From: "Eric Pugh" <[EMAIL PROTECTED]>
>
> Hi all,
>
> Is there a good pull tool for storing context between calls to the same
> page?  I put data in my context via various actions chained togehter.  If
I
> reload the page, I want the same context to still be available, versus
> putting everything into the page, and then recreating all the data in the
> context?  Basically a persistent context for a page.  Something simpler
then
> putting a ton of stuff in the user's session...
>
> Eric

If user.setTemp("name", object) and user.getTemp("name") is too complex I
guess you could write a tool that wraps these in a more simple or perhaps
customised interface.

HTH,

Scott


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


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

Reply via email to