Hi, Thank you for your answer. These two problems are very important for me on my project.
> Which action was returned? When I call http://myurl/anything/limit.action then LimitAction result is returned. Any action in the main package can be accessed in any url, for example: http://myurl/anything/limit.action http://myurl/anything/anything/limit.action http://myurl/a/b/c/limit.action I think it is not ok, is it? > Btw. the Convention plugin didn't change so much comparing to 2.3 I didn't use Convention plugin in 2.3 but Codebehind. But now in 2.5 I have to which case problems for me :( > You don't have to define an action in struts.xml just to satisfy > <default-action-ref/> - <default-action-ref/>'s action name will be used to find action in configuration (provided by the Convention plugin as well) How do you mean that? If I set this in struts.xml: <default-action-ref name="mypackage.actions.OtherAction" /> Then it doesn't work. Regards, Tamas On Mon, Sep 19, 2016 at 10:35 AM, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2016-09-19 9:59 GMT+02:00 Tamás Barta <bartata...@gmail.com>: > > Hi, > > > > I'm trying to migrate from 2.3 to 2.5.2 but I have two weird problem, > both > > were good in 2.3 so they are maybe problem of Convention plugin. > > > > Let's assume I have two actions: > > > > mypackage.actions.LimitAction > > mypackage.actions.user.UserAction > > > > In 2.3 : > > > > http://myurl/limit.action -> OK > > http://myurl/anything/limit.action -> There is no Action ... which is OK > > http://myurl/limit.user/user.action -> OK > > > > In 2.5: > > > > http://myurl/anything/limit.action -> OK ... *which should be There is > no > > Action ...* > > Which action was returned? There is a built-in mechanism in the > Convention plugin to look for an "index" action in each package. Btw. > the Convention plugin didn't change so much comparing to 2.3 > > > And if I set in default action in struts.xml: > > > > <default-action-ref name="other" /> > > > > <action name="other" class="mypackage.actions.OtherAction"> > > <result /> > > </action> > > You don't have to define an action in struts.xml just to satisfy > <default-action-ref/> - <default-action-ref/>'s action name will be > used to find action in configuration (provided by the Convention > plugin as well) > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >