Hi,

> 
> I wonder how in turbine data is supposed to be passed from an 
> action to a 
> template.
> The scenario: An action performs some processing (executing a query, 
> whatever) and the results are to be displayed by a template 
> (screen). The 
> action results need to be made available to the template. How?
> I've seen that rundata holds a FormMessages field - am I 
> supposed to use 
> this? It seems to be rather unhandy for simple screens. Is 
> there a way to 
> store name/value pairs somewhere (in rundata)? The session is 
> not really a 
> good place for storing data with request-scope.
> 

If your using the template aware actions, like VelocityAction, then the
method your overriding is;

    public abstract void doPerform( RunData data,
                                    Context context )        throws
Exception;

The contect is the one used by the template - thus you can put your query
results or whatever in the context obejct and it will be available in the
template - ta da...

Hope this helps.
Chris

================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and 
are sent for the personal attention of the addressee. Although you may be the named 
recipient, it may become apparent that this email and its contents are not intended 
for you and an addressing error has been made. This email may include information that 
is legally privileged and exempt from disclosure. If you have received this email in 
error, please advise us immediately and delete this email and any attachments from 
your computer system.Rabobank International is the trading name of Coöperatieve 
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
Registered with the Registrar of Companies for England & Wales No. BR002630 and 
regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically 
checked by Rabobank International for the presence of computer viruses prior to it 
being sent, however, no guarantee is given or implied that this email is virus free 
upon delivery.




------------------------------------------------------------
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