turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Age Mooy" <am...@home.nl>
Subject RE: Pasing Objects within Turbine.
Date Wed, 03 Oct 2001 15:15:00 GMT

> When I doSomethingelse I get a NullPointerExeption on sMyString.length(). So
> I guess sMyString isn't a allocated String at that time.
> Is there a way to do this ?

Not like this. Action objects get created afresh for each request I think.
> I know you can use Context to pass data to the Template and that way pass it
> to another Action. But this is only useful for simple strings, not for
> Objects.

You can put whatever you want into the context, not just Strings.

The context is only valid within a single request so if you want to store stuff 
between requests you should use the GlobalCacheService


To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org

View raw message