Anyway, I found a JIRA for accesing ActionContext stuff in the cunstructor (WW-310).
Using it after execute and ther methods resolves the problem though..

Thanks to Jason!
Cheers
p

-----Ursprüngliche Nachricht-----
Von: Wayland Chan [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. November 2003 19:08
An: [EMAIL PROTECTED]
Betreff: RE: RE: [OS-webwork] Problem with getting session from
ActionContext in Action (WW2-Beta2)


I can attest to this. I was doing Hibernate initialization stuff in a GenericServlet's 
init method and trying to store the Hibernate Session and SessionFactory instances in 
my ActionContext.getContext().getApplication() but had problems because it kept on 
returning NULL.

I never resolved it, instead choosing to put it in my ServletContext.

> Don't access the ActionContext before execute() (or whatever method)... It may not 
> be set up yet. 
> 



Ciao!

Wayland Chan
email: wchanATtrekspaceDOTcom

----------------------------------------------------------
Get your free email account from http://www.trekspace.com
          Your Internet Virtual Desktop!


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to