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
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
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
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
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
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 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 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,
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,
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
), 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
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
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
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
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
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
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
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,
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
I added "struts2-config-browser-plugin-7.0.0-M7-SNAPSHOT.jar" to my struts app.
When clicking on one of my actions (in the section "Actions in default
namespace"), this stack trace is printed:
20:17:33,371 ERROR [org.apache.struts2.config_browser.ShowConfigAction]
(default task-1) Unable to get
I have a "index.jsp" and invoke an action using "s:action" tag, then render
data from this action. In the browser I navigate to this jsp direcly
("http://localhost/index.jsp"; instead of browsing to ".../index.action").
Snippet from my JSP:
...
Sorry, my error - the only binary download I had found deep in the apache sites
was a a 7.0 M7 snapshot, but there is already 7.0 M9. With the new version, the
config browser works.
Best regards
Wolfgang
-
To unsubscribe, e-m
20.10.24 um 11:02 schrieb Lukasz Lenart:
sob., 19 paź 2024 o 15:18 Wolfgang Knauf
napisał(a):
I have a "index.jsp" and invoke an action using "s:action" tag, then render data from this action.
In the browser I navigate to this jsp direcly ("http://localhost/index.jsp
ge and jsp
is invoked directly in browser
>
> niedz., 20 paź 2024 o 11:14 Wolfgang Knauf
> napisał(a):
> >
> > OK, I see. Thanks for the clarification.
> >
> > Is there any chance to improve the error message or detect this
> > situation? You wrote that this is a r
Hi Heikki,
your description sounds like this parameter injection change:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=293046977#Struts6.x.xto7.x.xmigration-Actionparameterinjection
For testing purposes, you might disable this security feature completely:
struts.parameters.req
Hi,
how do you invoke the jsp? I had a (maybe) similar issue and learned
that I cannot invoke JSPs directly (by browsing to the jsp url), but
have to call an ".action" url instead.
Best regards
Wolfgang
Am 26.03.25 um 09:37 schrieb Lidin NT:
Hi all,
I'm working on a Struts 7 application
Hi,
the error "java.lang.NullPointerException: Cannot invoke
"org.apache.struts2.ActionInvocation.getProxy()" because "invocation" is
null" sounds like a problem that I ran into:
https://issues.apache.org/jira/browse/WW-5475
Do you by any chance call JSP pages directly, instead of invoking an
Hi Nate,
about "@StrutsParameter" and POJOs: you can set the "depth" attribute. A
value of "1" means that all properties of the POJO can be set. Level 2
would set properties of classes of properties of the POJO and so on.
@StrutsParameter(depth = 1)
public MyPoJo getPojo() { ... }
I don't k
;].isUserInRole("Level_2_Processor") ||
> > #request["MYUtils"].isUserInRole("Level_3_Processor")]
> > Caused by: java.lang.SecurityException: This expression exceeded maximum
> > allowed length: #request["MYUtils"].isUserInRole("Program_Man
Hi Deborah,
could be a matter of casing - the attribute is "escapeHtml":
https://struts.apache.org/tag-developers/property-tag.html
Does this help?
Wolfgang
Am 09.05.25 um 20:15 schrieb Deborah White:
I am getting this error after migrating to Struts 7.0.0.
JBWEB004251: An error occurred a
30 matches
Mail list logo