Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I am unable to resolve the exception

 
ashwini hikulkarni
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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..
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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 !!
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The method signature have to be

and


There is a mistake in the case of the method definition.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic