I believe you would need to include the name of the action object as part of the # reference, as we do with the session and request objects.
The idea behind the root object is that we don't need to refer to the object by name, since it is the "root". WW2 and S2 extend the OGNL notion of a root object to include a "stack" of objects. But when an object is not the root, we must refer to both the object and the property names. -Ted. On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I encountered a situation today that seems to disprove the following documentation. I have an Action class with a property that my JSP can only access if I DO NOT include the #. If I prepend the #, it is not found. "The Action instance is always pushed onto the value stack. Because the Action is on the stack, and the stack is the OGNL root, references to Action properties can omit the # marker. But, to access other objects in the ActionContext, we must use the # notation so OGNL knows not to look in the root object, but for some other object in the ActionContext.""\ -- Scott [EMAIL PROTECTED]
-- HTH, Ted <http://www.husted.com/ted/blog/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]