struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Bohnenberger <bill98...@gmail.com>
Subject Re: Chain a global result to an action?
Date Thu, 10 Sep 2009 19:40:58 GMT
I'll let someone else answer this... I've not jet used the convention plugin
(too bleeding edge for me! :)

On Thu, Sep 10, 2009 at 12:11 PM, Jim Collings <jlistnews@gmail.com> wrote:

> I also forgot to mention that this is a convention-plugin project.
>
> On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings <jlistnews@gmail.com> wrote:
> > Will I have to define the action in the struts.xml?  I'm currently
> > using annotations to handle mapping.
> >
> > Jim C.
> >
> >> This works for me:
> >>
> >> <struts>
> >>    <package ...
> >>
> >>        <global-results>
> >>            <result name="error" type="redirect">DeadEnd</result>
> >>        </global-results>
> >>
> >>    ...
> >>        <action name="DeadEnd" class="com.rp.db.actions.DeadEnd">
> >>            <result>deadEnd.jsp</result>
> >>        </action>
> >>
> >>    ...
> >>    </package>
> >> </struts>
> >>
> >> The entire action class is:
> >>
> >> @SuppressWarnings("serial")
> >> public class DeadEnd extends ActionSupport
> >> {
> >>
> >> }
> >>
> >> and when any action returns "error" the deadEnd.jsp page is displayed.
> >>
> >> - Bill
> >>
> >> On Thu, Sep 10, 2009 at 11:49 AM, Jim Collings <jlistnews@gmail.com>
> wrote:
> >>
> >>> Anybody know what the syntax for this is?  I don't seem to be getting
> it
> >>> right.
> >>>
> >>>
> >>> Jim C.
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>
> >
>
> ---------------------------------------------------------------------
> 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