File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 30752
    
156

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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30752
    
156

Shankar,
You are correct that you don't need a Struts tag to accomplish your goal.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error no getter method for property BEAN