| 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: 26496
|
|
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: 26496
|
|
Shankar, You are correct that you don't need a Struts tag to accomplish your goal.
|
 |
 |
|
|
subject: Error no getter method for property BEAN
|
|
|