on 11/9/2000 9:54 AM, "J�rome Tamiotti" <[EMAIL PROTECTED]> wrote:

> Hello,
> i'm using tdk / velocity to try to build a small
> address book application.
> First I create an instance of my AddressBook class
> in the Default.java, object that I want to make accessible
> from any screen of my app.
> So I use context, with:
> 
> context.put("mybook", mybook);
> 
> Then, I can access it from a template:
> ex: <P> Address book owner is $mybook.getOwner() </P>
> ok, it works,
> but i'd like to access it from an action file too: Menu.java
> i tried:
> AddressBook mybook = (AddressBook)context.get("mybook");
> 
> but it doesn't work :-((
> Has anyone an idea ?
> 
> Thanks.

Actions are executed before Screen's are and context's are not persistent
across requests.

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to