Results 1 to 5 of 5
  1. #1
    chinnaweb is offline Member
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    0

    Default Struts: Cannot find ActionMappings or ActionFormBeans collection

    hai,
    I am getting the following error.plz try to solve it.(I am using myeclipse)
    "Cannot find ActionMappings or ActionFormBeans collection".

    login.jsp:
    --------
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html>
    <head>
    <title>login.jsp</title>
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    </head>
    <body>
    <html:form action="/loginSubmit" method="post" focus="login">
    <table border="0">
    <tr>
    <td>Login:</td>
    <td><html:text property="login" /></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><html:password property="password" /></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><html:submit /></td>
    </tr>
    </table>
    </html:form>
    </body>
    </html:html>
    =====================================
    web.xml:
    ---------
    <web-app>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>WEB-INF/struts-config.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    </web-app>
    ==========================================
    struts-config.xml:
    -----------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

    <struts-config>
    <data-sources />
    <form-beans >
    <form-bean name="loginForm" type="formBean.LoginForm" />
    </form-beans>
    <action-mappings >
    <action attribute="loginForm" input="/login.jsp" name="loginForm" path="/loginSubmit" scope="request" type="action.LoginAction" >
    <forward name="success" path="/success.html" />
    <forward name="failure" path="/failure.html" />
    </action>
    </action-mappings>

    <message-resources parameter="com.struts.ApplicationResources" />
    </struts-config>

  2. #2
    dixit.ashish is offline Member
    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0

    Default

    Hi.........
    can u please more specify your proble.

  3. #3
    dixit.ashish is offline Member
    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0

    Default jsp exception

    hi, can u anybody help me plg solve my problem i got below error

    tomcat error
    exception: "jsp:param" standard action "name" with "value" attributes

  4. #4
    dixit.ashish is offline Member
    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0

    Default

    hi,
    thanks for reply.
    but right now i got following below exception could you please help me why it comes that type of exception?
    [JPivot] 13 Apr 2010 13:50:25,523 ERROR [Session ] org.apache.catalina.core.StandardWrapperValve#invo ke: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:



    Stacktrace:
    at org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:85)
    at org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:330)
    at org.apache.jasper.compiler.JDTCompiler.generateCla ss(JDTCompiler.java:435)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:298)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:277)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:265)
    at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:564)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:299)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:691)
    at org.apache.catalina.core.ApplicationDispatcher.doI nclude(ApplicationDispatcher.java:594)
    at org.apache.catalina.core.ApplicationDispatcher.inc lude(ApplicationDispatcher.java:505)
    at org.apache.jasper.runtime.JspRuntimeLibrary.includ e(JspRuntimeLibrary.java:965)
    at org.apache.jsp.vertical_005fmenu_jsp._jspService(v ertical_005fmenu_jsp.java:131)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:691)
    at org.apache.catalina.core.ApplicationDispatcher.doI nclude(ApplicationDispatcher.java:594)
    at org.apache.catalina.core.ApplicationDispatcher.inc lude(ApplicationDispatcher.java:505)
    at org.apache.jasper.runtime.JspRuntimeLibrary.includ e(JspRuntimeLibrary.java:965)
    at org.apache.jsp.project_005flist_jsp._jspService(pr oject_005flist_jsp.java:136)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:525)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Unknown Source)
    thanks & Regards
    Ashish

  5. #5
    jigaramin13 is offline Member
    Join Date
    Apr 2010
    Location
    Vadodara
    Posts
    7
    Rep Power
    0

Similar Threads

  1. decorator.jsp problem building Struts Menu in JSP when Struts action is used
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-29-2010, 06:33 AM
  2. help for collection api
    By javastuden in forum New To Java
    Replies: 3
    Last Post: 02-24-2010, 12:52 PM
  3. struts No Collection Found
    By orchid in forum Web Frameworks
    Replies: 3
    Last Post: 02-18-2010, 06:37 PM
  4. Garbase Collection
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-30-2007, 10:37 AM
  5. Problems with collection
    By Heather in forum New To Java
    Replies: 1
    Last Post: 07-08-2007, 01:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •