struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Thibaudeau" <pierre.thibaud...@gmail.com>
Subject Re: Best practice for passing success/error message to another dispatch (struts2)?
Date Tue, 12 Aug 2008 19:44:23 GMT
This may be completely incidental to your problem, but, it seems to me that,
if your actions are listed in that order, the first one will catch the
occurrences of the second one.  ("importRole" is a particular case of
"*Role".)  Shouldn't they be listed in the reverse order?


> > Example struts.xml:
> >     <action name="*Role" class="RoleAction" method="list">
> >       <result name="input">/list.page</result>
> >       <result name="success">/list.page</result>
> >     </action>
> >
> >     <action name="importRole" class="RoleAction" method="import">
> >       <result name="input" type="chain">listRole</result>
> >       <result name="success" type="chain">listRole</result>
> >     </action>
>

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