Struts-Config
Hi,
The following is the content of my struts-config.xml file.
<?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-beans>
<form-bean name="ExLogParseForm" type="roughWorkApp.ExLogParseForm"/>
</form-beans>
<action-mappings>
<action path="/Parse&Upload"
type="roughWorkApp.ExcelParseAction"
name="ExLogParseForm">
<forward name="ParseSuccess" path="/ParseSuccess.html"/>
<forward name="LoginFailure" path="/Failure.html"/>
</action>
</action-mappings>
</struts-config>
I have an Action class named as ExcelParseAction.java and an ActionForm class by the name ExlogParseForm.java.
The application is deployed in the webapps folder of the tomcat directory by the name ABCD(package). Inside the WEB-INF folder there is a folder namedroughWorkApp in which the .class files are present.
Everything seems to be working fine but when i put the URL for the welcome page i get the following error:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.ParseExcel_jsp._jspService(ParseExcel_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
org.apache.jsp.ParseExcel_jsp._jspx_meth_html_005fform_005f0(ParseExcel_jsp.java:127)
org.apache.jsp.ParseExcel_jsp._jspx_meth_html_005fhtml_005f0(ParseExcel_jsp.java:101)
org.apache.jsp.ParseExcel_jsp._jspService(ParseExcel_jsp.java:72)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
I am unable to figure out how to solve the problem. kindly help.

