This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i got error Exception creating bean of class ???

 
karthik ekantha
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • 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>
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic