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
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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?
html:rewrite without the rewrite ?
Duplicate action and path
can one have multiple global-forward
What is wrong with my html:link code.
action forward problem : when "Failure"
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014