struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: Default action behaviour with convention plugin change in 2.3.12
Date Wed, 20 Mar 2013 15:36:10 GMT
What I've suggested before -- but haven't done anything about it -- is to
allow the struts.xml packages to have an index action. This will execute if
the package is specified but no action. This is different than a default
action.

Paul

On Wed, Mar 20, 2013 at 9:02 AM, Dave Newton <davelnewton@gmail.com> wrote:

> There's that filter config solution, but I can't find a good reference to
> it at the moment.
>
>
> http://stackoverflow.com/questions/8071137/struts-2-execute-action-instead-of-welcome-file/8071249#8071249
>
> Gives the overview, however.
>
> Dave
>
>
>
> On Wed, Mar 20, 2013 at 9:57 AM, Lukasz Lenart <lukaszlenart@apache.org
> >wrote:
>
> > 2013/3/20 Eric Chatellier <chatellier@codelutin.com>:
> > > Is there any working solution with 2.3.12 ?
> > >
> > > tried some configurations with
> > > <welcome-file-list>
> > >       <welcome-file>index</welcome-file>
> > > </welcome-file-list>
> > > but doesn't seems to work yet...
> >
> > The problem with <welcome-file/> is that by Servlet Spec only static
> > resources can be defined as a welcome file, thus leads to solution
> > like:
> > - defined index.jsp as a welcome-file
> > - add: <% response.sendRedirect("index.action"); %>
> >
> > or try on of these
> >
> >
> http://stackoverflow.com/questions/39399/how-can-i-set-the-welcome-page-to-a-struts-action
> >
> >
> > 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
> >
> >
>
>
> --
> e: davelnewton@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton <https://twitter.com/dave_newton>
> b: Bucky Bits <http://buckybits.blogspot.com/>
> g: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
>

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