Inside the action tag, the action will be on top of the stack, so you can reference it using #top. The action is added to the context under the "id" (2.0), or "var" (2.1) name, on the end of the tag, so you cannot reference it by name inside the action tag. Wow, that was some very confusing explanation in fact :)
musachy On Tue, Jan 20, 2009 at 4:28 PM, Wolfgang Knauf <his-metal...@freenet.de> wrote: > Hi, > >> >> Maybe the var is used if you did something like: >> >> <s:action name="doSomething" var="myAction"> >> <s:property value="%{#myAction.getterMethod}"/> >> or >> <s:property value="getterMethod"/> >> </s:action> >> > > Unfortunately not, I gave this a try already (using "id" attribute, as > Struts 2.0.14 does not know "var"). I might give it a try with 2.1.6. > > Wolfgang > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org