aspose file tools*
The moose likes Struts and the fly likes Cant find getter method on formbean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cant find getter method on formbean" Watch "Cant find getter method on formbean" New topic
Author

Cant find getter method on formbean

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Hi guys,

I am new here hope someone can help.

I have written a form using jsp, struts 1.2 but i seem to be having some problems linking the form bean with the actual form. i get the following error.



i know this is usually caused by spelling errors i have spent the last two hours looking for the error but cant find it. Hopefully someone here can help

my jsp page looks like something like this



and the form bean looks something like this



and the servlet looks somthing like this



i didnt display most of the code but only the necessary bits. Hopefully someone can see something im not seeing..
O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

I seem to have fixed the problem by simple renaming the properties of the objects in the jsp form.

How come this seem to have worked even though the name in the jsp starts with a lower case whereby the name in the actual formbean starts with an uppercase letter?
 
jQuery in Action, 2nd edition
 
subject: Cant find getter method on formbean