struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamás Barta <bartata...@gmail.com>
Subject Re: Trying to migrate to 2.5.2
Date Mon, 19 Sep 2016 11:17:11 GMT
> 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 <lukaszlenart@apache.org>
wrote:

> 2016-09-19 10:51 GMT+02:00 Tamás Barta <bartatamas@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message