struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aur Gal <...@dovesolutions.com>
Subject Global forwarding
Date Fri, 29 Sep 2000 20:37:15 GMT
Hello,
I'm trying to do a very simple page, this is th body:

<struts:include name="header"/>

Home

<struts:include name="footer"/>

this is my action.xml:

<action-mappings>

	<!-- Global Forward Declarations -->
	<forward name="navigation"
path="/Main/Navigation.jsp"/>
	<forward name="header"		path="/Main/Header.jsp"/>
	<forward name="footer"		path="/Main/Footer.jsp"/>

	<!-- Edit user registration -->
	<action    path="/Profile"
	    actionClass="com.prizehub.action.ProfileAction"
	  formAttribute="ProfileForm"
	      formClass="com.prizehub.beans.ProfileForm">
	  <forward name="successInsert"
path="/User/Success.jsp?action=insert"/>
	  <forward name="successUpdate"
path="/User/Success.jsp?action=update"/>
	  <forward name="confirm"
path="/User/Profile.jsp?action=confirm"/>
	  <forward name="signup"    path="/User/Profile.jsp?action=signup"/>
	</action>

</action-mappings>

I'm getting the following exception:

javax.servlet.ServletException: Cannot find global forward named header
	at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:448)
	at
Main._0002fMain_0002fHomePage_0002ejspHomePage_jsp_5._jspService(_0002fMain_
0002fHomePage_0002ejspHomePage_jsp_5.java:117)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
	at org.apache.tomcat.core.Handler.service(Handler.java:263)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:74
9)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:207)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
Root cause: 
javax.servlet.jsp.JspException: Cannot find global forward named header
	at org.apache.struts.taglib.IncludeTag.doEndTag(IncludeTag.java:161)
	at
Main._0002fMain_0002fHomePage_0002ejspHomePage_jsp_5._jspService(_0002fMain_
0002fHomePage_0002ejspHomePage_jsp_5.java:79)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
	at org.apache.tomcat.core.Handler.service(Handler.java:263)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:74
9)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:207)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)

I'm running on tomcat 3.2 beta 4
 
can anybody tell me what I'm doing wrong? thanks.
Aur Gal
Dove Solutions
515-469-5877



Mime
View raw message