This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Error  no getter method for property BEAN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error  no getter method for property BEAN" Watch "Error  no getter method for property BEAN" New topic
Author

Error no getter method for property BEAN

Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
Hi all,

I have a jsp page, which has a <html:text> field, for which I do not have a corressponding set/get method in the ActionForm and when i try to access this page I get the following error.


I know that if I declare this variable in the bean, the error would be solved but is there any other way of bypassing this?

Thanks


"Failure is not when you fall down; its only when you fail to get up again."
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Shankar,
Technically speaking, you just need the get/set methods. The variable itself is to provide meaning to the form. Why don't you want the form field in your bean?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
Hi Jeanne,

The text field in the form is used only to search in entries in the list box, I am only concerned with the list box value. I could solve this problem by replacing the text field tag with the corressponding html <input> tag.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Shankar,
You are correct that you don't need a Struts tag to accomplish your goal.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Error no getter method for property BEAN
 
Similar Threads
Struts 1.0 issue with ActionForm
getXXX error?? for XXXX
html:options values getting appended
Please Help Me With This Error Message
nexted Iterate Tag syntax