Here's an example from JIRA:


<action name="admin.IndexAdmin" alias="IndexAdmin" roles-required="admin">

  <view name="success">/secure/admin/jira/views/indexing.jsp</view>
  <view name="error">/secure/admin/jira/views/indexing.jsp</view>

  <command name="reindex" alias="IndexReIndex">
    <view name="success">/secure/admin/jira/views/indexing.jsp</view>
    <view name="error">/secure/admin/jira/views/indexing.jsp</view>
  </command>
  <command name="activate" alias="IndexActivate">
    <view name="success">/secure/admin/jira/views/indexing.jsp</view>
    <view name="error">/secure/admin/jira/views/indexing.jsp</view>
  </command>
  <command name="deactivate" alias="IndexDeActivate">
    <view name="success">/secure/admin/jira/views/indexing.jsp</view>
    <view name="error">/secure/admin/jira/views/indexing.jsp</view>
  </command>
</action>

Cheers,
Scott

Steve Conover wrote:
Can you provide a quick example or point me to some document that shows
how this works?  Nothing from a list search or on the website or wiki
looks like it explained this.

Thanks,
Steve



-----Original Message-----
From: Steve Conover [mailto:[EMAIL PROTECTED]

I'm looking at GenericDispatcher and it seems clear that the
view is determined by the original actionName + action
result.  There would have to be something that transformed
the actionName into actionName + "!" + commandName to do what
I was suggesting, somewhere along the way.

I'm not suggesting it as a feature at this point, but does
what I'm suggesting seem logical/necessary to anyone else?

-Steve

Sorry, I meant you can do it using the actions.xml. There's probably a way to do it with the properties, too.


------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork






-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



--


ATLASSIAN - http://www.atlassian.com
Expert J2EE Software, Services and Support
-------------------------------------------------------
Need a simple, powerful way to track and manage issues?
Try JIRA - http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to