wood burning stoves 2.0*
The moose likes Struts and the fly likes Exception creating bean of class web.struts.form.CompanyRegistrationForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception creating bean of class web.struts.form.CompanyRegistrationForm" Watch "Exception creating bean of class web.struts.form.CompanyRegistrationForm" New topic
Author

Exception creating bean of class web.struts.form.CompanyRegistrationForm

Haris Farooque
Greenhorn

Joined: Nov 30, 2009
Posts: 6
hi all,
I am having a problem here with my CompanyRegistrationForm and CompanyRegistrationAction. It says Exception creating bean of class web.struts.form.CompanyRegistrationForm

amazing fact is that, I have successfully made 2 other forms (userLogin and userRegistration) with their actions and they are working fine but i don't what is wrong with my 3rd form(CompanyRegistrationForm) i have checked all the settings in struts-config.xml and in the companyRegistration.jsp and i didn't find anything wrong there. also thre are no Typo mistakes in any of these files.
Please suggest something if any of you have experienced similar issue before.

code samples are attached below;

struts-config.xml:



companyRegistration.jsp I am taking inputs for two DB tables in one jsp, and so this is defined in my CompanyRegistration.hbm.xml


CompanyRegistrationForm.java



CompanyRegistrationAction.java


I hope I have provided enough details!

as soon as I open the registration form with this URL:http://localhost:802/main/companyRegistration.jsp it gives following execption;

Haris Farooque
Greenhorn

Joined: Nov 30, 2009
Posts: 6
Suprise Suprise!

Amazing problems have amazing solutions!

i removed the '/' from my companyRegistration.jsp in form action and it started to work
previously:


now>


i don't know if this is a typo mistake or else because my other 2 JSPs are working fine with '/'

anyway this problem is resolved. i hope things will work fine but if not then, of course, i will get back again

regards
 
wood burning stoves
 
subject: Exception creating bean of class web.struts.form.CompanyRegistrationForm