aspose file tools*
The moose likes Struts and the fly likes I am unable to resolve the exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I am unable to resolve the exception " Watch "I am unable to resolve the exception " New topic
Author

I am unable to resolve the exception

ashwini hikulkarni
Greenhorn

Joined: Jun 16, 2008
Posts: 25
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

The method signature have to be

and


There is a mistake in the case of the method definition.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am unable to resolve the exception