You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Mark Lybarger <Ma...@CBC-Companies.com> on 2003/06/12 20:24:30 UTC

LoginUser calling an action

i'm trying to call an action from the LoginUser, but i haven't quite figured
out how.  i've tried calling the data.setAction, but that doesn't seem to
call the action that i set.  i could create an instance of my action in the
LoginUser.doPerform method, but my action has a signature of
myAction.doPerform( RunData, Context).  there's no context available in the
LoginUser.  so this is where i'm stuck.  is it possible to call an action
from the LoginUser? if so does anyone have an example?  perhaps a better way
to implement this?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003
 


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


RE: LoginUser calling an action

Posted by Quinton McCombs <qm...@nequalsone.com>.
You can get the context by calling TurbineVelocity.getContext(data).

To get an instance of your action, you can either instantiate it
directly, or use ActionLoader.  Either way works.

> -----Original Message-----
> From: Mark Lybarger [mailto:Mark.Lybarger@CBC-Companies.com] 
> Sent: Thursday, June 12, 2003 1:25 PM
> To: 'Turbine Users List' (E-mail)
> Subject: LoginUser calling an action
> 
> 
> i'm trying to call an action from the LoginUser, but i 
> haven't quite figured out how.  i've tried calling the 
> data.setAction, but that doesn't seem to call the action that 
> i set.  i could create an instance of my action in the 
> LoginUser.doPerform method, but my action has a signature of 
> myAction.doPerform( RunData, Context).  there's no context 
> available in the LoginUser.  so this is where i'm stuck.  is 
> it possible to call an action from the LoginUser? if so does 
> anyone have an example?  perhaps a better way to implement this?
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 
> 
> 


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