This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32507
    
214

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?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32507
    
214

Shankar,
You are correct that you don't need a Struts tag to accomplish your goal.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Error no getter method for property BEAN
 
It's not a secret anymore!