Error in ActionMappings please help!!

Hi,
I got this err:
Cannot find ActionMappings or ActionFormBeans collection
I am not able to find the cause:
Here's my form:
<%@ taglib uri="/META-INF/tlds/struts-html.tld" prefix="html"%>
   <html:form action="login.do">
     <table>
         <tr>
           <td> <br>
                <table class="log">
                    <tr>
                      <td>User id</td>
                      <td><html:text size="8" property="user"/><br>
                      </td>
                    </tr>
                 </table>
               </td>
          </tr>
          <tr>
            <td>Password</td>
            <td><html:text size="8" property="password"/></td>
          </tr>
      </table>
<html:submit value="submit"/>
</html:form>Here's my struts-confg.xml file :
<?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>
     <form-beans>
    <form-bean
            name="login"
            type="cVLogin"/>
      </form-beans>
     <action-mappings>
          <action path="/login"
            type="cALogin"
         input="login.jsp"
            name="login"
         scope="request">
        <forward name="success"
          path="success.jsp"
          redirect="false"/>
            </action>
     </action-mappings>
</struts-config>Could any one help me on this!!
I
Edited by: BalajiSundar on Apr 8, 2008 12:13 AM

Hi,
I' m getting the following error messages when I'm trying to run my jsp file(hotel.jsp). I guess der s some prob with the version of struts I'm using(I'm using struts 2.0.11.1)
root cause
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.hotel_jsp._jspService(hotel_jsp.java:116)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
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:741)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.hotel_jsp._jspx_meth_html_form_0(hotel_jsp.java:133)
org.apache.jsp.hotel_jsp._jspService(hotel_jsp.java:106)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
My struts-config file looks like this :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<DOCTYPE sruts-config PUBLIC
"?//Apache Software Foundation//DTD Struts Configuration 2.2//EN"
"http://jakarta.apache.org/struts/dtds/struts?config_2_2.dtd">
<struts-config>
<form-beans>
<form-bean name="HotelForm" type="wiley.HotelForm">
</form-bean>
<form-bean name="AmenitiesForm" type="wiley.AmenitiesForm"/>
<form-bean name="SearchForm" type="wiley.SearchForm"/>
</form-beans>
<action-mappings>
<action path="/Hotel"
type="wiley.HotelAction"
name="HotelForm"
input="/hotel.jsp">
<forward name="success" path="/hotelupdate.jsp"/>
<forward name="failure" path="/hotel.jsp"/>
</action>
<action path="/Search"
type="wiley.SearchAction"
name="SearchForm"
input="/search.jsp">
<forward name="success" path="/searchupdate.jsp"/>
<forward name="failure" path="/search.jsp"/>
</action>
<action path="/Amenities"
type="wiley.AmenitiesAction"
name="AmenitiesForm"
input="/amenities.jsp">
<forward name="success" path="/amenitiesupdate.jsp"/>
<forward name="failure" path="/amenities.jsp"/>
</action>
</action-mappings>
</struts-config>
A part of my hotel.jsp looks like this:
<html:form action="/Hotel" >
<table width="45%" border="0">
<tr>
<td>hotelname:</td>
<td><html:text property="hotelname" /></td>
<td>hotelid:</td>
<td><html:text property="hotelid" /></td>
<td>hoteladdress</td>
<td><html:text property="hoteladdress" /></td>
</tr>
<tr>
<td colspan="2" align="center"><html:submit /></td>
</tr>
</table>
</html:form>

Similar Messages

Maybe you are looking for

  • How to log the messages in an internal table n display

    Hello guys, This is my first post in SDN. I am uploading some data from application server. I am doing lot of varifications, based on that I have to display the messages. So I asked not to use the write statements to display the messages but asked me

  • Whenever I visit youtube I get strange page errors when I click on a video or try to open something in a new tab.

    Whenever I visit YouTube I sometimes have problems opening new tabs or clicking on videos. Sometimes when I click on a video all that shows is code and nothing else. Other times I click on a video and I get a window that looks like I'm trying to down

  • Cant open ITunes after Upgrade

    Must have upgraded my ITunes recently because ITunes will no longer open unless I download the new Quicktime 7.6. My company computer is running MAC OS 10 with no option for Leopard. APPLE! You idiots! If your upgrade is going to render a customers I

  • BT Infinity Lack of Connection EVERY night!

    We had BT Infinity installed on 10 April and the following day went on holiday for a week. When we returned we found we cannot load any web pages from around 8.30pm every night and the problem is still there in the morning.  We have one wired connect

  • Makepkg doesn't work - can't build new different pkgs.

    I'm maintaining a pkg named firefox-optimized. Now after I change mozconfig and PKGBUILD, I can't build a different pkg. All the pkgs I built are all the same except .PKGINFO. I have disabled ccache, and delete all cached files, even try to login ano