• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

I am unable to resolve the exception

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am working on a struts application kindly help me out and failing to debug/ fix
this exception:-->
javax.servlet.ServletException: No getter method for property: "username" of bean:
-----------
I am forwarding my source code kindly help
1>login.jsp
2>LoginForm.java
3>LoginAction.java
4>web.xml
5>struts-config.xml
--

1>login.jsp


2>LoginForm.java


3>LoginAction.java



4>web.xml



5>Struts-config.xml



Kindly help me..
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is in your form bean definition ,



The getter/setter method requires syntax like this :

set[name-of-form-field-with-first-alphabet-small-and-rest-is-as-it-is](Paramter )

So i think you can find out your mistake , easily !!
 
Ranch Hand
Posts: 479
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The method signature have to be

and


There is a mistake in the case of the method definition.
 
Always! Wait. Never. Shut up. Look at this tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic