File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Newbie to with ActionForward error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Newbie to with ActionForward error" Watch "Newbie to with ActionForward error" New topic

Newbie to with ActionForward error

s logeson

Joined: Jan 14, 2004
Posts: 2
I am new to struts and I just can't figure out why I'm getting this error message: org.apache.jasper.JasperException: Cannot find global ActionForward for name welcome
Here is my struts-config.xml:
<forward name="welcome" path="/test.jsp" redirect="true" />

<action path="/home"
<forward name="Success" path="/test.jsp"/>
<controller processorClass="org.apache.struts.action.RequestProcessor"
<message-resources parameter="EmatrixMessageResources"/>
Here is my welcome.jsp:
<%@ taglib uri="" prefix="logic" %>

<logic:forward name="welcome"/>

I'm just trying to forward to a test.jsp. Any help would be appreciated.
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
If my memory servers me correctly.... the logic:forward does a request distpacther forward. Just for kicks try removing the redirect attribute from your welcome forward in you struts config file.
It could also be that the JSP page you specify in the forward is spelled wrong. Try forwarding directly to the jsp with <jsp:forward instead.
BTW logic:forward breaks the model 2/MVC framework as it allows the view to select the next view. Only the controller should select the next view.

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
Did that help?
I agree. Here's the link:
subject: Newbie to with ActionForward error
jQuery in Action, 3rd edition