Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I make a global forward pointing to an Action?

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thing won't work with me when I call <logic:redirect forward="buildDepartments"/>



any ideas? Thanks!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change:

path="/WEB-INF/classes/actions/DepartmentBuilder"

to

path="/DepartmentBuilder.do"

This is assuming that "/DepartmentBuilder" is specified as the path when you defined the action in the struts-config.xml file.

If you use this technique, you callthe action the same way you would call it from the URL line in the browser. Remember: It isn't a class you're calling, it's a URI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic