Its handy to know these errors, and get a different a response depending on dev mode
With dev mode off get a 404 (same message), rather than a Struts Problem Report Struts has detected an unhandled exception: There is no Action mapped for namespace [/admin] and action name [messagesDeletez] associated with context path [/myContext]. maybe : if dev mode is ON leave as is. If OFF call the default? (which I guess would be execute?) On 29 July 2016 at 09:34, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2016-07-29 10:28 GMT+02:00 Greg Huber <gregh3...@gmail.com>: > > Have you an example of what the default action/name would actually be? > > > > > > <action name="messageDelete!*" method="{1}" class="admin.MessageDelete"> > > <result name="input" type="tiles">.MessageDelete</result> > > <result name="confirm" type="tiles">.MessageDelete</result> > > <result name="success" type="chain">messages</result> > > <result name="cancel" type="redirectAction"> > > <param name="actionName">messages</param> > > </result> > > <result name="error" type="chain">messages</result> > > </action> > > It's hardcoded as "index" by default but can be redefined in > struts.xml with "struts.default.action.name" constant, for method it's > "execute" and "struts.defult.method.name" - it's all about mapping so > away before configuration plays its role. > > It should be rather treated as <default-action-ref/> when someone > requested an action that doesn't match allowed.action.names > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > >