• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

forwarding to an action using xdoclet and struts

 
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm looking to do an Actionforward using xdoclet and struts. I don't want to reference the baseref in order to create the forward. Here's what I have so far.

* @struts.action
* name="netGroupsForm"
* path="/netGroups"
* scope="request"
* input=".uas.netgroupsdisplay"
* validate="false"
*
* @struts.action-forward
* name="netgroupsadd"
* path=".uas.netgroupsadd"
*
* @struts.action-forward
* name="netgroupsdisplay"
* path=".uas.netgroupsdisplay"
*
* @struts.action-forward
* name="netgroupsupdate"
* path=".uas.netgroupsupdate"
*
* @struts.action-forward
* name="netgroupsdelete"
* path=".uas.netgroupsdelete"

This code works great for INSIDE the action however if I want to forward to ANOTHER action, what might I do in order to make this happen.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dale DeMott:
if I want to forward to ANOTHER action, what might I do in order to make this happen.


Just provide the .do suffix to the action. Example:
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks much. I knew it wouldn't be much... I just couldn't remember what it was.
 
reply
    Bookmark Topic Watch Topic
  • New Topic