• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

i got error Exception creating bean of class ???

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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):

 
karthik ekantha
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic