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

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 act

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

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-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-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-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] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
Just to give some more information (maybe someone with more in-depth knowledge finds the time to take a look at this issue): On copying it to the deploy directory of JBoss, memory usage increases by 20 MB. On calling the first struts page (http://localhost:8080/KuchenZutatStrutsWeb/ - then

Re: [S2] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
), the machine is constantly swapping, and the app is poorly slow. I suspect a JBoss 5 problem, but as I have only very basic struts knowledge, I don't know enough about the internals to file a struts or jboss JIRA. Thanks Wolfgang Knauf Wolfgang Knauf wrote: Hi all, I have a quite

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 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

[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()"

[S2] Exploding memory usage with JBoss5

2009-01-19 Thread Wolfgang Knauf
Hi all, I have a quite small Struts 2 application running on a JBoss 5.0GA. It contains some EJB3 entity beans, an EJB3 session bean, a handful of struts actions and three JSPs. After about 5 redeploys (I use JSR88), JBoss is consuming more and more memory (>500MB) and thus getting poorly slow.

Re: Doc for s:url tag has wrong "includeParams" default

2009-01-07 Thread Wolfgang Knauf
Hi, I updated the page. thanks for reporting. http://struts.apache.org/2.0.14/docs/url.html shows still the wrong info "As of Struts 2.0.11.3/2.0.12/2.1.3 the includeParams constant defaults to 'none'". According to you, this was only changed in 2.1.x? Best regards Wolfgang ---

Doc for s:url tag has wrong "includeParams" default

2009-01-04 Thread Wolfgang Knauf
Hi everybody, it seems this page contains an error: http://struts.apache.org/2.0.14/docs/url.html The sentence "As of Struts 2.0.11.3/2.0.12/2.1.3 the includeParams constant defaults to 'none'." seems to be wrong: In file "org\apache\struts2\default.properties" in "struts2-core-2.0.14.jar" it

Re: Struts 2 + JBoss5: error with init-param "actionPackages"

2009-01-04 Thread Wolfgang Knauf
Filed in JIRA: https://issues.apache.org/struts/browse/WW-2948 Wolfgang Wolfgang Knauf wrote: I added an "init-param" "actionPackages" to the FilterDispatcher in web.xml. This worked with JBoss 4.2, but in 5.0 it raises an

Re: Struts 2 + JBoss5: URI scheme is not "file"

2009-01-04 Thread Wolfgang Knauf
Ooops, my sample still included 2.0.11 libraries. After updating to 2.0.14, it works. Wolfgang Wolfgang Knauf wrote: Hi all, I have a small sample which uses this ...-validation.xml config file: ... When calling the action, this results in the exception below. 17:57:16,578 ERROR [[default

Struts 2 + JBoss5: URI scheme is not "file"

2009-01-01 Thread Wolfgang Knauf
Does anybody have an explanation or a workaround? According to the exception message, I suspect some problem with the new JBoss virtual file system, because there all file URIs start with "vfsfile://". Thanks Wolfgang Knauf 17:57:16,578 ERROR [[default]] Serv

Struts 2 + JBoss5: error with init-param "actionPackages"

2009-01-01 Thread Wolfgang Knauf
Hi all, I added an "init-param" "actionPackages" to the FilterDispatcher in web.xml. This worked with JBoss 4.2, but in 5.0 it raises an exception on deploy. The reason seems to be the virtual file system introduced in JBoss 5.0. To reproduce: Take the sample "struts2-blank-2.0.14.war". Add th