in struts2 is there a way to detect when "No action mapped for namespace
..." error will come up??

What I mean is that can we write an if condition that checks whether or not
the the action name exists in struts.xml?

we can get the action name by: ActionContext.getInstance().getName()

So if the above line of code returns an action name...can it
be guaranteed that we will not get "No action mapped for namespace..."?

Thanks

Reply via email to