I am not using Sitemesh.
It's standard WW2-beta2 installation using Tomcat4.1.27.
I just figured out that almost all getters in ActionContext return null
(e.g. getParameters(), getApplication, getName..).

I am using following code:

 public ECMBaseAction() { //extends ActionSupport
        LOG.debug("Initializing ECMBaseAction...");
        context = ActionContext.getContext();
        sessionMap = context.getSession(); //--> sessionMap is null
    }

Cheers
p

-----Ursprüngliche Nachricht-----
Von: Francisco Hernandez [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. November 2003 17:31
An: [EMAIL PROTECTED]
Betreff: Re: [OS-webwork] Problem with getting session from
ActionContext in Action (WW2-Beta2)


I submitted an issue for this:

http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-407

i also attached an example that demonstrates when its happening (when a property 
called from a sitemesh decorator is 
called and that property calls ActionContext.getContext().getSession()

even  ServletActionContext.getRequest() is returning null in the same situation.



Jason Carreira wrote:

> What version of WW, what servlet container, etc?
> 
>     -----Original Message-----
>     *From:* Patrick Holzmann [mailto:[EMAIL PROTECTED]
>     *Sent:* Tuesday, November 25, 2003 11:12 AM
>     *To:* [EMAIL PROTECTED]
>     *Subject:* [OS-webwork] Problem with getting session from
>     ActionContext in Action (WW2-Beta2)
> 
>     Hi all,
> 
>     I am having problems using the ActionContext.getContext().getSession().
>     This call always returns null though the ActionContext itself is not
>     null. Using SessionAware also gave me null on the session.
> 
>     Somebody knows what I'm doing wrong or what the problem is?
> 
>     Thanks and cheers
>     Patrick
> 





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