You need to make sure the <html:form action="/logon" > tag in you jsp page,
is declared in your struts config file ..here is an example of my struts
config....notice the <action path="/logon" ....> tag.You need one of these
for every different <html:form action="????" > tag in you jsp page.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<!-- ========== Form Bean Definitions ===================================
-->
<form-beans>
<form-bean name="loginForm"
type="com.didata.itax.payment.web.actionform.LoginActionForm"/>
<form-bean name="eFilerForm"
type="com.didata.itax.payment.web.actionform.EFilerActionForm"/>
<form-bean name="taxPayerForm"
type="com.didata.itax.payment.web.actionform.TaxPayerActionForm"/>
</form-beans>
<!-- ========== Global Forward Definitions ==============================
-->
<global-forwards>
<forward name="logonForm" path="/logon.jsp"/>
<forward name="mainMenu" path="/mainMenu.jsp"/>
<forward name="index" path="/index.jsp"/>
<forward name="eFiler" path="/EFilerMenu.jsp"/>
</global-forwards>
<!-- ========== Action Mapping Definitions ==============================
-->
<action-mappings>
<action path="/logon"
type="com.didata.itax.payment.web.action.LoginAction"
name="loginForm"
scope="request"
input="/logon.jsp">
<forward name="failure" path="/index.html"/>
<forward name="success" path="/login.jsp"/>
</action>
<action path="/eFilerAdd"
type="com.didata.itax.payment.web.action.EFilerAction"
name="eFilerForm"
scope="request"
input="/EFilerInput.jsp">
<forward name="failure" path="/EFilerInput.jsp"/>
<forward name="success" path="/EFilerDone.jsp"/>
</action>
<action path="/eFilerEdit"
type="com.didata.itax.payment.web.action.EFilerAction"
name="eFilerForm"
scope="request">
<forward name="failure" path="/EFilerMenu.jsp"/>
<forward name="success" path="/EFilerInput.jsp"/>
</action>
<action path="/eFilerUpdateState"
type="com.didata.itax.payment.web.action.EFilerAction"
name="eFilerForm"
scope="request">
<forward name="failure" path="/EFilerList.jsp"/>
<forward name="success" path="/EFilerDoneList.jsp"/>
</action>
<action path="/eFilerDelete"
type="com.didata.itax.payment.web.action.EFilerAction"
name="eFilerForm"
scope="request">
<forward name="failure" path="/EFilerMenu.jsp"/>
<forward name="success" path="/EFilerList.jsp"/>
</action>
<action path="/eFiler"
type="com.didata.itax.payment.web.action.EFilerAction"
name="eFilerForm"
scope="request"
input="/EFilerMenu.jsp">
<forward name="failure" path="/index.jsp"/>
<forward name="success" path="/EFilerList.jsp"/>
</action>
</action-mappings>
</struts-config>
-----Original Message-----
From: Kevin Newman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 7:07 AM
To: Struts-User (E-mail)
Subject: Newbie Question: Servlet Exception
Hi All,
I've just loaded struts and am having a little problem. I started by
placing the *.war files in webapps directory. After copying xalan & xerces
jar files into the lib directory almost all of the example apps worked.
My next step was to setup the struts-blank then modify it to get a feel for
how strut works. When I try to add logon to the blank app I get the message
below. What does this mean? Do I need to post more info?
Platform: Windows 2000
Servlet Engine: Tomcat 4.0 b3
Struts: 1.0-b1
Thanks,
Kevin Newman
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Cannot retrieve mapping for specified form
action path "/logon"
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:441)
at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:299)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:200)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431)
.... Some deleted .....
Root Cause:
javax.servlet.jsp.JspTagException: Cannot retrieve mapping for specified
form action path "/logon"
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:487)
at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:128)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:200)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:246)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:191)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:255)
.... Some deleted .....