already logged out therefore the request.context is null <ww:property value="#session.context" />
a new login action will re-establish a valid context take a look at this example http://struts.apache.org/2.x/docs/simplelogin-with-session.html HTH/ M-- ----- Original Message ----- From: "Chon Tang" <[EMAIL PROTECTED]> To: <user@struts.apache.org> Sent: Saturday, December 08, 2007 1:23 AM Subject: Re: struts.ValueStack not found - 2.1 > I've been able to track this down a little more, and the issue is pretty > different from what I expected. > > The ActionContext is being changed from between the point my action is > invoked, to the point the resulting JSP is serviced/rendered. > > My action is defined this way: > > <action name="relogin" class="actions.LoginAction" method="relogin"> > <result>/views/login.jsp</result> > </action> > > login.jsp makes a single <s:property> access to a field supported in > LoginAction. > > I realized I was getting null pointer exceptions in the OGNL runtime's > access to the HttpSession. I added a simple debugging message in my Action > class's getter: > System.out.println("Context: " + ActionContext.getContext()); > > And I can see now the ActionContext has changed... the new one has been > emptied of the previous HTTP session. > > - Context: [EMAIL PROTECTED] > - [com.opensymphony.xwork2.ognl.OgnlValueStack] Could not find property [ > org.apache.catalina.jsp_file] > - Context: [EMAIL PROTECTED] > > Any suggestions? I'm currently using: > > - jboss 4.2, > - ognl-2.6.11 > - xwork-2.1.1 > - struts2-core-2.1.1 > > - Chon Tang > > ---------- Forwarded message ---------- > From: "Chon Tang" <[EMAIL PROTECTED]> > To: user@struts.apache.org > Date: Fri, 7 Dec 2007 14:50:48 -0800 > Subject: struts.ValueStack not found - 2.1 > Hi there, > > I'm in the process of attempting an upgrade from a working 2.0.9 application > to 2.1. > > For some reason, what I thought would be a very simple upgrade has gotten > very messy... none of my jsp files are rendering correctly, because it seems > like the valueStack is not being inserted into the Action Context! Very > bizarre. > > Upon execution, I see: > 2007-12-07 17:34:36,275 WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] > Could not find property [struts.valueStack] > > ... this is with devMode = false, by the way. With devMode = true, I also > see repeated exceptions telling me that none of the values on the OGNL stack > are being seen. Anywhere I reference a value... s:property, s:if, > s:iterator... an exception is being thrown telling me it's not being seen. > > Any suggestions on what I might be missing? Again this code worked great > with 2.0.9, and other than a few minor fixes... I haven't changed any of my > initializers/configuration/properties files. > > Regards, > > - Chon Tang > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]