> It's a fallback, did you read this https://struts.apache.org/ docs/converting-application-from-codebehind-to-convention-plugin.html?
Yes, but I don't understand which row is about it :) https://struts.apache.org/docs/namespace-configuration.html The Default Namespace part which made me understand this problem. On Mon, Sep 19, 2016 at 1:08 PM, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2016-09-19 10:51 GMT+02:00 Tamás Barta <bartata...@gmail.com>: > > 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? > > It's a fallback, did you read this > https://struts.apache.org/docs/converting-application- > from-codebehind-to-convention-plugin.html > ? > > > > >> 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 :( > > Uh... so it isn't 2.3 to 2.5 migration, but Codebehind to Convention > migration ;-) > > >> 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" /> > > Just reference an action which is provided by the Convention e.g. > <default-action-ref name="other" /> > > and you don't have to configure it in struts.xml > > > 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 > >