File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Cannot retrieve definition for form bean HtmlFileForm error?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Cannot retrieve definition for form bean HtmlFileForm error??" Watch "Cannot retrieve definition for form bean HtmlFileForm error??" New topic
Author

Cannot retrieve definition for form bean HtmlFileForm error??

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
javax.servlet.ServletException: Exception forwarding for name index: javax.servlet.ServletException: Cannot retrieve definition for form bean HtmlFileForm
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
the following is my struts-config file
<form-beans>
<form-bean name="HtmlButtonForm" type="ch12.HtmlButtonForm"/>
</form-beans>
<global-forwards>
<forward name="index" path="/Logon.do"/>
</global-forwards>
<action-mappings>
<action name="HtmlFileForm" path="/Logon" scope="session" forward="/logon.jsp"/>
<action name="HtmlFileForm" path="/LogonSubmit" scope="session"
type="ch12.LogonAction" validate="false">
<forward name="success" path="/setUpForm.do"/>
<forward name="failure" path="/Logon.do"/>
</action>
<action name="HtmlFileForm" path="/setUpForm" scope="session"
type="ch12.SetUpAction" validate="false">
<forward name="continue" path="/HtmlFile.do"/>
</action>
<action name="HtmlFileForm" path="/HtmlFile" scope="session"
type="ch12.HtmlFileAction" validate="false">
<forward name="default" path="/HtmlFile.jsp"/>
</action>
Thank you
john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
realized my stupid mistake
Jdidi Adil
Greenhorn

Joined: Feb 10, 2004
Posts: 1
you must have the following:
<form-beans>
<form-bean name="HtmlFileForm" type="ch12.HtmlFileForm"/>
</form-beans>
in your struts-config.xml
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Cannot retrieve definition for form bean HtmlFileForm error??
 
Similar Threads
getting 404 error
Logic:iterate
getting error 404
Server-side validation causing bean data to vanish.
Exception creating bean of class