wood burning stoves*
The moose likes Struts and the fly likes Can I make a global forward pointing to an  Action? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can I make a global forward pointing to an  Action?" Watch "Can I make a global forward pointing to an  Action?" New topic
Author

Can I make a global forward pointing to an Action?

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
This thing won't work with me when I call <logic:redirect forward="buildDepartments"/>



any ideas? Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I make a global forward pointing to an Action?
 
Similar Threads
What is wrong with my html:link code.
action forward problem : when "Failure"
can one have multiple global-forward
Duplicate action and path
html:rewrite without the rewrite ?