[S2] s:action in value stack?

2009-01-19 Thread Wolfgang Knauf
Hi all, there is one thing about calling an action through the 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. would access "getField()"

Re: [S2] s:action in value stack?

2009-01-19 Thread dusty
I have not researched this butthe 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 you are at the view stage right? Your or

Re: [S2] s:action in value stack?

2009-01-20 Thread stanlick
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 wrote: > > I have not researched this butthe way I understand it the action is > executed and its result evaluated a

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
Hi, I would be careful about placing action execution logic in your view. This is really not the place to be making navigation decisions. I know ;-). I use it only on my index page, where I force creation of an action which provides me with a list of items to display on the start page. So

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
Hi, Maybe the var is used if you did something like: or 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

Re: [S2] s:action in value stack?

2009-01-20 Thread Musachy Barroso
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 explana

Re: [S2] s:action in value stack?

2009-01-25 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: 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

Re: [S2] s:action in value stack?

2009-01-25 Thread Musachy Barroso
I think top doesn't need "#"(yeah I know I said "#top" ;) ). Either "top.id" or just "id" should get you the id. musachy On Sun, Jan 25, 2009 at 4:02 PM, Wolfgang Knauf wrote: > Hi Musachy, > > Musachy Barroso wrote: >> >> Inside the action tag, the action will be on top of the stack, so you >>

Re: [S2] s:action in value stack?

2009-01-27 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: I think top doesn't need "#"(yeah I know I said "#top" ;) ). Either "top.id" or just "id" should get you the id. I uploaded a new sample to, with your change ("top" instead of "#top"). http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Acti

Re: [S2] s:action in value stack?

2009-01-28 Thread Alexander Baetz
Hi, are you sure about the tag-action beeing on top of the stack during the execution of its result? i use an action-tag to generate a view component (a little info box on my page) and on one of my pages there is the situation that the tag-action is of the same class as the original action.

Re: [S2] s:action in value stack?

2009-01-28 Thread Musachy Barroso
Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available "by name" in the stack, only outside the "action" tag. musachy On Wed, Jan 28, 2009 at 5:40 AM, Alexander Baetz wrote: > Hi, > > are you sure about the tag-action beeing on top o

Re: [S2] s:action in value stack?

2009-01-29 Thread Wolfgang Knauf
Musachy Barroso wrote: Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available "by name" in the stack, only outside the "action" tag. I cannot confirm the first half of this (see my sample). A action called by "s:action" seems to b

Re: [S2] s:action in value stack?

2009-01-29 Thread Musachy Barroso
what does prints in the action result? musachy On Thu, Jan 29, 2009 at 5:53 PM, Wolfgang Knauf wrote: > Musachy Barroso wrote: >> >> Yes, during the result of the invoked action, the invoked action will >> be on the top of the stack, but it is available "by name" in the >> stack, only outside t

Re: [S2] s:action in value stack?

2009-01-29 Thread Musachy Barroso
Ok, let me try to clarify this, if the result of some action, lets call it "firstAction" contains: while the result of "secondAction" is executed, "secondAction" will be on top of the stack, and it is not available by name in the stack. Inside the tag content, "firstAction" is on top of the

Re: [S2] s:action in value stack?

2009-01-31 Thread Wolfgang Knauf
Darn, "Ctrl+Enter" is no good So, one more try: Musachy Barroso wrote: what does prints in the action result? I updated my sample (http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war) so that the JSP outputs this: Inside s:action: Property "id": Inside

Re: [S2] s:action in value stack?

2009-02-01 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: what does prints in the action result? musachy On Thu, Jan 29, 2009 at 5:53 PM, Wolfgang Knauf wrote: Musachy Barroso wrote: Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available "by name" in

Re: [S2] s:action in value stack?

2009-02-05 Thread Wolfgang Knauf
Hmmm, no reply. So I will bounce this issue one last time... Up to now, nobody could tell me why an action called by "" is not placed on the value stack the same way as an action called by URL. Wolfgang Wolfgang Knauf wrote: Musachy Barroso wrote: what does prints in the action result?

Re: [S2] s:action in value stack?

2009-02-05 Thread Musachy Barroso
Didn't my previous email answer your questions? "Ok, let me try to clarify this, if the result of some action, lets call it "firstAction" contains: while the result of "secondAction" is executed, "secondAction" will be on top of the stack, and it is not available by name in the stack. Insid

Re: [S2] s:action in value stack?

2009-02-06 Thread Wolfgang Knauf
Hi Musachy, what you say makes sense, but then I think one thing is missing in the doc for s:action (http://struts.apache.org/2.1.6/docs/action.html): I suggest something like this: "The action is never placed on the value stack like an action called by URL, so that accessing fields of it wit