Within an action you have access to the velocity context object.
So  you can access a tool with the context.get("...") method.

void doAnyaction(RunData data, Context context)
{
  MyTool t = (MyTool) context.get("mytool");

  ....
}

rewards

  Uwe



                                                                                       
                           
                      "Marc Lustig"                                                    
                           
                      <mail@marclustig.        An:       
<[EMAIL PROTECTED]>                        
                      com>                     Kopie:                                  
                           
                                               Thema:    reference to tool from 
action-method                     
                      10.10.2002 14:42                                                 
                           
                      Bitte antworten                                                  
                           
                      an "Turbine Users                                                
                           
                      List"                                                            
                           
                                                                                       
                           
                                                                                       
                           




Hi,
is there any particular way how to access a reference to a tool from within
action-code?
Or is it necessary to create a new object?

TIA.
Marc


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