The Artima Developer Community
Sponsored Link

Java Answers Forum
Cannot find ActionMappings or ActionFormBeans collection

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Vandana More

Posts: 3
Nickname: tai
Registered: Nov, 2006

Cannot find ActionMappings or ActionFormBeans collection Posted: Nov 5, 2006 9:40 PM
Reply to this message Reply
Advertisement
Hello all,
I am new in struts and while running very simple example I got error like this..

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:758)
org.apache.jsp.login_jsp._jspService(login_jsp.java:85)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:741)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.login_jsp._jspx_meth_html_form_0(login_jsp.java:102)
org.apache.jsp.login_jsp._jspService(login_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


My struts_config is like this

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
< struts-config>

<global-forwards>
<forward name="login" path="/login.jsp"/>
</global-forwards>

<form-beans>

<form-bean name="loginForm" type="src.forms.LoginForm"/>

</form-beans>

<action-mappings>

<action path="/login" type="src.actions.LoginAction" name="loginForm" input="/login.jsp" validate="false" scope="request" parameter="method">
</action>

</action-mappings>



</struts-config>

my web.xml is like this

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
<display-name>login</display-name>

<welcome-file-list>
<welcome-file>
login.jsp
</welcome-file>
</welcome-file-list>

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class&g t;
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<resource-ref>
<res-ref-name>jdbc/sslapp</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>

<taglib>
<taglib-uri>
/WEB-INF/struts-html
</taglib-uri>
<taglib-location>
/WEB-INF/struts-html.tld
</taglib-location>
</taglib>

<taglib>
<taglib-uri>
/WEB-INF/struts-bean
</taglib-uri>
<taglib-location>
/WEB-INF/struts-bean.tld
</taglib-location>
</taglib>

<taglib>
<taglib-uri>
/WEB-INF/struts-logic
</taglib-uri>
<taglib-location>
/WEB-INF/struts-logic.tld
</taglib-location>
</taglib>


</web-app>


and my login.jsp is like this

<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>

<html>
<head>
<title>login</title>
</head>

<body">
<html:form action="login.do" method="post">
<table align="center">
<tr>
<td>Username:   </td>
<td><html:text property="username"/></td>
</tr>
<tr>
<td>Password:   </td>
<td><html:password property="password"/></td>
</tr>
<tr>
<td colspan="2" align="middle"><html:submit property="method" value="login"/></td>
</tr>
</table>
</html:form>
</body>
</html>



can anyone help me out...........
thanks in advance

Topic: Matisse - Drag jFileChoose Onto Project? Previous Topic   Next Topic Topic: Inter plugin communication.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use