A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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?
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 ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014