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
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
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
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
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
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
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
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
), 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
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
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
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()"
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.
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
---
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
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
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
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
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
19 matches
Mail list logo