Cannot find ActionMappings or ActionFormBeans collection


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Cannot find ActionMappings or ActionFormBeans collection

  1. #1
    Join Date
    Jan 2006
    Posts
    1

    Cannot find ActionMappings or ActionFormBeans collection

    Hello sir,

    I tried your program struts-blank but when i tried to compile it by typing http://localhost:8080/struts-blank/submit.jsp


    I got an 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.java:758)
    org.apache.jsp.submit_jsp._jspService(submit_jsp.java:122)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    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:802)

    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.submit_jsp._jspx_meth_html_form_0(submit_jsp.java:153)
    org.apache.jsp.submit_jsp._jspService(submit_jsp.java:107)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    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:802)

  2. #2
    Join Date
    Dec 2005
    Posts
    6
    pls check the struts' configure files.
    in the jsp pages,
    the form's action must match the url in the struts' configure files.

  3. #3
    Join Date
    Nov 2006
    Posts
    1
    Hello, I know this will not help the person who have posted this query. I was trying to make a small application in struts 1.2.4 and came across the same error "javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection". i search the net and found that lot of people are facing this problem. I was able to fix the problem by changing the doctype in my struts-config.xml. the doc type was refering to 1.1. i changed the doctype string and the application started working..
    The one which should be ther is :
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://struts.apache.org/dtds/struts-config_1_2.dtd">

    if you still are not able to figure out then u can mail me at saurav.nahata@itcinfotech.com

  4. #4
    Join Date
    Nov 2006
    Posts
    2
    Hi,

    I followed this example too. You retrieved that from some struts book.

    If you are new to struts, a good starting point is to start by the
    struts blank application. (inside the struts dist)
    This way you start from a working one and you can add your components, making easier your application debug.
    You haven't to add any jar that ships with struts, but only those that you need from your custom components you will add.


    Cool JavaScript Formatter
    Last edited by yaldex; 11-06-2006 at 06:32 AM.

Similar Threads

  1. ado find
    By Mike in forum VB Classic
    Replies: 0
    Last Post: 08-23-2000, 09:29 AM
  2. Storing a pointer to a collection
    By Sean Woods in forum VB Classic
    Replies: 4
    Last Post: 05-19-2000, 08:22 AM
  3. Cannot find object in collection
    By CB Green in forum VB Classic
    Replies: 3
    Last Post: 04-14-2000, 09:08 AM
  4. Cannot find object in collection
    By CB Green in forum VB Classic
    Replies: 0
    Last Post: 04-13-2000, 03:30 PM
  5. Replies: 0
    Last Post: 03-11-2000, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center