Hi Nenko

in your action class methods you get the RunData and the Context object.
>From the Context object you can easily extract your tool:

public void doPerform(RunData data, Context context)
{
     Session s = (Session) context.get("session"); // suppose your tool is
named session in the velocity context
    ....
}

The same works for velocity screens ...

/uwe




                                                                                       
                                     
                      "Nenko Ivanov"                                                   
                                     
                      <[EMAIL PROTECTED]        An:       <[EMAIL PROTECTED]>          
                        
                      om>                      Kopie:                                  
                                     
                                               Thema:    Access session based tool 
instance in my screens and actions       
                      27.04.2004 16:22          question?                              
                                     
                      Bitte antworten                                                  
                                     
                      an "Turbine Users                                                
                                     
                      List"                                                            
                                     
                                                                                       
                                     




Hi all,
I want to have session tool that holds for example the current language.
But I do not know how to access the session instance of this tool and
obtain
current language in my VelocityScreen or VelocityAction based class. Is it
possible.?
And if it is, how i must realize this tool?

Thanks all in advance.

Nenko


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to