struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas" <andr...@paleden.com>
Subject RE: "No getter method" error, but ActionForm does have the getter
Date Thu, 05 Sep 2002 23:50:22 GMT
Another guess.  Does your Form overload the setter methods?  I.e. do you
have two different setter methods, for instance one that takes an
integer and one that take a string as the argument?  I had this problem
and it solved itself when I got rid of the overloaded setter.

Rgs,
Andreas


> -----Original Message-----
> From: Sri Sankaran [mailto:Sri.Sankaran@sas.com] 
> Sent: Thursday, September 05, 2002 16:24
> To: Struts Users Mailing List
> Subject: RE: "No getter method" error, but ActionForm does 
> have the getter
> 
> 
> Just a SWAG but I think your action mapping may need some 
> looking into. In particular, since Struts is looking at some 
> top-level class org.apache.struts.taglib.html.BEAN, I suspect 
> that the action is not wired to the correct form bean that 
> indeed has the getter.
> 
> Sri
> 
> > -----Original Message-----
> > From: Jeff Corliss [mailto:jeffcorliss@yahoo.com] 
> > Sent: Thursday, September 05, 2002 4:53 PM
> > To: Struts Users Mailing List
> > Subject: RE: "No getter method" error, but ActionForm does 
> > have the getter
> > 
> > 
> > Thanks for the suggestion. When you say its a
> > recurring issue, do you mean that in a "There's a bug"
> > way or an "RTFM" way?  If RTFM, which I don't mind at
> > all, can you specify which manual?  I've already
> > searched the mail archive and come up with more
> > questions than answers so far.
> > 
> > Many thanks,
> > JC
> > 
> > --- "Galbreath, Mark" <Galbreath@tessco.com> wrote:
> > > This is a recurring issue here and the archive is
> > > filled with answers:
> > > 
> > >
> > http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> > > 
> > > Try searching on "No getter method for property."
> > > 
> > > Mark
> > > 
> > > -----Original Message-----
> > > From: Jeff Corliss [mailto:jeffcorliss@yahoo.com]
> > > Sent: Thursday, September 05, 2002 1:44 PM
> > > To: Struts Users Mailing List
> > > Subject: "No getter method" error, but ActionForm
> > > does have the getter
> > > 
> > > 
> > > Hi All,
> > > 
> > > I have a small ActionForm subclass with just a few
> > > fields, and I'm getting the following html error
> > > output when the jsp with the text edit fields gets
> > > forwarded to:
> > > 
> > > ===================================
> > > javax.servlet.ServletException: No getter method for
> > > property language_cd of bean org.apache.struts.taglib.html.BEAN
> > > ...
> > > ===================================
> > > 
> > > Thing is, the class does have the following method:
> > > 
> > >   public String getLanguage_cd()
> > > 
> > > Probably just a case of brainfreeze, but any ideas
> > > what I'm missing?
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> > For 
> > additional commands, 
> > e-mail: <mailto:struts-user-help@jakarta.apache.org>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message