File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Can I make a global forward pointing to an Action?
Joined: Sep 18, 2005
Jan 16, 2006 15:47:00
This thing won't work with me when I call <logic:redirect forward="buildDepartments"/>
<global-forwards> <forward name="getUser" path="/pages/login.jsp"/> <forward name="showMenu" path="/cpanel.jsp" redirect="true"/> [B] <forward name="buildDepartments" path="/WEB-INF/classes/actions/DepartmentBuilder" redirect="false"/> [/B] </global-forwards>
any ideas? Thanks!
Joined: Feb 15, 2005
Jan 17, 2006 17:26:00
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.
I agree. Here's the link:
subject: Can I make a global forward pointing to an Action?
Duplicate action and path
can one have multiple global-forward
html:rewrite without the rewrite ?
action forward problem : when "Failure"
What is wrong with my html:link code.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015