wood burning stoves 2.0*
The moose likes Struts and the fly likes i got error Exception creating bean of class ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "i got error Exception creating bean of class ???" Watch "i got error Exception creating bean of class ???" New topic
Author

i got error Exception creating bean of class ???

karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
javax.servlet.jsp.JspException: Exception creating bean of class com.form.EmptyForm under form name EmptyForm
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:536)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:503)
org.apache.jsp.input_jsp._jspx_meth_html_005fform_005f0(input_jsp.java:143)
org.apache.jsp.input_jsp._jspx_meth_html_005fhtml_005f0(input_jsp.java:114)
org.apache.jsp.input_jsp._jspService(input_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)


this is my config.xml file



<!-- ========== Form Bean Definitions ================================== -->
<form-beans>
<form-bean name="EmptyForm" type="com.form.EmptyForm"/>
</form-beans>


<!-- ========== Action Mapping Definitions ============================= -->
<action-mappings>
<action name="EmptyForm" path="/emptyaction" type="com.action.EmptyAction" scope="request" input="/input.jsp">
<forward name="success" path="/output.jsp" redirect="true"/>
</action>
</action-mappings>
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

karthik ekantha wrote:javax.servlet.jsp.JspException: Exception creating bean of class com.form.EmptyForm under form name EmptyForm


You cannot create an instance of an object with the same name as a class. That's like doing this (which is obviously a syntax error):



"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
Joe Ess wrote:
karthik ekantha wrote:javax.servlet.jsp.JspException: Exception creating bean of class com.form.EmptyForm under form name EmptyForm


You cannot create an instance of an object with the same name as a class. That's like doing this (which is obviously a syntax error):



thanks for a reply...
 
Consider Paul's rocket mass heater.
 
subject: i got error Exception creating bean of class ???
 
Similar Threads
ValidatorActionForm Question?
how can i forward action mapping in struct-config.xml?????????????
Exception creating bean of class
global forwards to DispatchAction not working?
Runing an example struts application