• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No getter method?

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a form that has a getFname() but I keep on getting "No getter method for property fname of bean result". What else could generate this error?

Seconldy, I would like to have the .java for struts for debugging purposes into my project. Where can I get that?

Thanks
[ August 12, 2006: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What else could generate this error?


A number of other things can generate it, and most of them are clerical errors: misspellings, wrong form bean names, wrong action attribute in your <html:form> tag.

If you'd like help in debuggin it, post the following:

1-The relevant portions of your struts-config.xml file.
2-The relevant portions of your jsp, including the <html:form> tag and all references to the fname property.
3-The ActionForm bean.

I would like to have the .java for struts for debugging purposes into my project. Where can I get that?


Just go to the Struts home page and select the download link. Find the download page for the version of Struts you're using. When you see a page that allows you to select between binaries and source, select source.
 
Adam Teg
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks

Here is the code:
<form-bean name="searchForm" type="dummies.form.SearchForm"/>

<actionpath="/search"
type="dummies.action.SearchAction"
name="searchForm"
scope="request"
input="/search.jsp"
validate="true">
<forward name="results" path="/results.jsp"/>
</action>

<logic:iterate id="result" name="searchForm" property="results">
<tr>
<td><bean:write name="result" property="fname"/></td>
</tr>
</logic:iterate>

The bold causes the error but it iterates the correct number of time. I checked it with simple html print. I go have a getFname() in my searchForm.

Thanks
 
Adam Teg
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem was in the sql and another class. Thanks for your help.
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic