struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adam pinder <>
Subject RE: Error creating form bean struts 1.2 + weblogic 8.1 + myeclipse 5.5
Date Thu, 01 Apr 2010 12:56:52 GMT

seems like form definition isn't in struts config file or properly defined....

> Date: Thu, 1 Apr 2010 11:45:42 +0000
> To:
> Subject: Error creating form bean struts 1.2 + weblogic 8.1 + myeclipse 5.5
> From:
> Hi All,
> I am a newbee to struts and trying some hands on it. I was just trying to develop a simple
login form but getting following exception on initial run only.
> ---------------------------------------------------------------------------------------------
> SEVERE: Error creating form bean of class
org.apache.struts.config.FormBeanConfig.createActionForm( org.apache.struts.util.RequestUtils.createActionForm(
org.apache.struts.util.RequestUtils.createActionForm( org.apache.struts.taglib.html.FormTag.initFormBean(
org.apache.struts.taglib.html.FormTag.doStartTag( jsp_servlet.__login._jspService(
> ---------------------------------------------------------------------------------------------
> I tried searching thru all forums from last 2 days but could not found any solution to
the issue. This seems to be a very common problem but I don't know why its not going away.
I am really stuck up.
> Below are the listing of files required to analyize the cause of error.
> web.xml------------<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ""><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>    <init-param>      <param-name>debug</param-name>
     <param-value>3</param-value>    </init-param>    <init-param>
     <param-name>detail</param-name>   &
> nbsp;  <param-value>3</param-value>    </init-param>    <load-on-startup>0</load-on-startup>
 </servlet>  <servlet-mapping>    <servlet-name>action</servlet-name>
   <url-pattern>*.do</url-pattern>  </servlet-mapping>  <welcome-file-list>
   <welcome-file>index.jsp</welcome-file>  </welcome-file-list>  <taglib>
  <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>   <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> index.jsp---------......<body>    <html:link page="/">Login</html:link>
> struts-config.xml-----------------<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE
struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "">
> <struts-config>  <data-sources />  <form-beans>    <form-bean name="loginForm"
type="com.siemens.struts.form.LoginForm" />
>   </form-beans>
>   <global-exceptions />  <global-forwards />  <action-mappings>   
<action      attribute="loginForm"      name="loginForm"      path="/empLogin"      scope="request"
     type="com.siemens.struts.action.EmpLoginAction"      validate="false" />         
<action forward="/Login.jsp" path="/home" />
>   </action-mappings>
>   <message-resources parameter="com.siemens.struts.ApplicationResources" /></struts-config>
> Login.jsp---------
> <body>    <html:form action="/empLogin" 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>Login</html:submit></td>
> p;   </tr>      </table>    </html:form>  </body>
> I can also provide the form bean and action class if required but I believe it won't
add to solving the problem as the exception occurs when I click on the link on index.jsp and
then it tries to render the Login.jsp.
> Please help.
> Nanu
Send us your Hotmail stories and be featured in our newsletter
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message