Struts2: Handling a Missing Action (404)

2008-11-08 Thread delsvr
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.

Re: Struts2: Handling a Missing Action (404)

2008-11-08 Thread Wes Wannemacher
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

Re: Struts2: Handling a Missing Action (404)

2008-11-08 Thread delsvr
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

Rest App showcase

2008-11-08 Thread Felippe Scheidt
Hi all, i'm trying struts2-rest-showcase. The orders example works fine. Now i'm wondering how to access a product related to a order. Let's image that a order has many products. For example, to access the order it's just http://.../webapp/orders so, to get a product of some order, how could i i

Re: Struts2: Handling a Missing Action (404)

2008-11-08 Thread Wes Wannemacher
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