Hi Andrei,
depends on your needs/app setup, but probably your best bet is
to use an interceptor:
http://www.stripesframework.org/display/stripes/Intercept+Execution

-m





On 10/06/2008 03:55 PM, amarkovits wrote:
> Hy
> My first post, my first question:
>
> Can i access the ActionContext in a non ActionBean class?
>
> I want to makes some logs on the db operations.
> For example what i want to do is something like this:
>
> Class X{
>
>   public void addEntry(String value){
>     db.insert(value);
>     String username = session.getAtribute("username");
>     loger.log(username, "add entry "+value);
>   }
> }
>
> Can i get in the X class the Http session without transmitting as a method
> parameter for example?
>
> Andrei
>
> --
> View this message in context: 
> http://www.nabble.com/Can-i-get-the-ActionContext-in-a-non-ActionBean-class--tp19836554p19836554.html
> Sent from the stripes-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to