Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!