This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error no getter method for property BEAN

 
Shankar Narayana
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Shankar Narayana
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic