I just got done dealing with this issue as well. On my naive reading of the
struts Dispatcher code, it appears to convert the Exceptions arising from
non-existing actions into invocations of sendError() with the appropriate
error code (when devMode is enabled, I actually get a 500 caused by an NPE
No problem, I think I might have read a little too much into your
original post too :)
I was thinking that you were looking for a more complex solution, but
wildcards are sufficient for most needs, especially if your namespace
is /.
I think there is an exception that does get thrown when no acti
Thanks for the quick reply.
I may have spoken too soon about the wildcard mapping. I originally had the
"enable.SlashesInActionNames" property set to true before trying the
wildcard, thinking that would make the most sense if I want to match
everything under a namespace; however, setting it to fa
I can sort of understand your request, but there are a few things to
consider. First off, Struts tries really hard to be de-coupled from the
servlet / JSP specs, so what you're asking is not quite as easy and some
quick configuration hacks. Probably the easiest way to get what you want
is to config
I've been searching high and low for a solution to this simple problem, but I
can't find anything:
How can I get Struts2 to handle non-existing actions, globally? I thought a
global exception mapping would do it, but it doesn't seem like an exception
is being thrown when an action can't be found.
5 matches
Mail list logo