I would be careful about placing action execution logic in your view. This is really not the place to be making navigation decisions.
On Mon, Jan 19, 2009 at 9:05 PM, dusty <dustin_pea...@yahoo.com> wrote: > > I have not researched this but....the way I understand it the action is > executed and its result evaluated and that result sent in place. You can > choose not to execute the result but then it just "does something" and the > view moves on. When you are doing <s:action/> you are at the view stage > right? Your original action has already completed. > > 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> > > I have only ever seen <s:action/> and it is used to generate view > components or perform some background state maintenance task. I need to go > try it since I have not used <s:action/> in a long time. > > > Wolfgang Knauf wrote: > > > > Hi all, > > > > there is one thing about calling an action through the <s:action> tag: I > > can provide an "id", and I can call the properties of the action with > > "#actionid.field" annotations later on the page. > > But I would expect this action to be placed on the value stack, so that > > e.g. <s: property value="field"/> would access "getField()" on the > > action. This does not seem to work. > > > > The "var" attribute described at > > http://struts.apache.org/2.0.14/docs/action.html does not seem to be > > present in Struts2. > > > > Could anybody please explain why? > > > > Thanks > > > > Wolfgang > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/-S2--s%3Aaction-in-value-stack--tp21551483p21556210.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >