You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by me...@bpam.fr on 2002/11/07 16:01:30 UTC
Réf. : Re: No getter method for property message
Still trying to debug my "No getter method for property" strange behavior I'm
posting
my classes source code.
I'm thanking in advance thoses who will check about this.
It's been two days I'm trying to find out why this happens.
(See attached file: admReception.jsp)(See attached file: ReadMailForm.java)(See
attached file: ReceptionHandlerAction.java)(See attached file:
struts-config.xml)
Meissa
Postfach 4711 <po...@gmx.de> on 07/11/2002 15:04:56
Veuillez répondre à "Struts Users Mailing List" <st...@jakarta.apache.org>
Pour : "Struts Users Mailing List" <st...@jakarta.apache.org>
cc :
Objet : Re: No getter method for property message
Hello meissa,
could you please mail your "/filterMails" action mapping, the
corresponding form bean, and action form?
Thursday, November 7, 2002, 2:02:20 PM, you wrote:
mSbf> I'm tearing my hair off about this very strange
mSbf> error message.
mSbf> here it is.
mSbf> javax.servlet.ServletException: No getter method for property targetDir of
bean
mSbf> org.apache.struts.taglib.html.BEAN
mSbf> I get it when my jsp is called. it seems like my own form bean is not
mSbf> recognized even when I do define all
mSbf> thins in my config file.
mSbf> here is the definition in the struts config file
mSbf> <form-bean name="readMailForm"
mSbf> type="com.bpam.mail.forms.ReadingMailForm"/>
mSbf> <action path="/initReception"
mSbf> name="readMailForm"
mSbf> type="com.bpam.mail.actions.CreateReceptionAction"
mSbf> scope="request"
mSbf> validate="false">
mSbf> <forward name="success" path="/admReception.jsp"/>
mSbf> </action>
mSbf> the form bean class contains simple String attributes.
mSbf> in my jsp, the form is defined like this :
mSbf> <html:form action="/filterMails">
mSbf> <html:hidden property="taskAction" value="save"/>
mSbf> <table border="0" width="90%" align="center" CELLPADDING="0"
CELLSPACING=
mSbf> "1" border="0" cla"form">
mSbf> <tr height="40">
mSbf> <td width="3%"> </td>
mSbf> <td><bean:message key="libelle.repertoire"/></td>
mSbf> <td>
mSbf> <html:text property="targetDir" size="30"
maxlength=
"50"/>> *
mSbf> </td>
mSbf> </tr>
mSbf> </table>
mSbf> </html:form>
mSbf> when I call them in admReception.jsp, I get error message above saying
that the
mSbf> targetDir has no getter method. what' wrong.
mSbf> I've searching the all archive list, but there is nothing similar to my
problem.
mSbf> if someone can help .
mSbf> Meissa
mSbf> --
mSbf> To unsubscribe, e-mail: <
mailto:struts-user-unsubscribe@jakarta.apache.org>
mSbf> For additional commands, e-mail: <
mailto:struts-user-help@jakarta.apache.org>
--
Best regards,
Dirk
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Réf. : Re: No getter method for property message
Posted by John Espey <jo...@tallan.com>.
not sure if this matters, but there isn't a closing quote around the action
definition in your form tag
-----Original Message-----
From: meissa.Sakho@bpam.fr [mailto:meissa.Sakho@bpam.fr]
Sent: Thursday, November 07, 2002 9:02 AM
To: Struts Users Mailing List
Subject: Réf. : Re: No getter method for property message
Still trying to debug my "No getter method for property" strange behavior
I'm
posting
my classes source code.
I'm thanking in advance thoses who will check about this.
It's been two days I'm trying to find out why this happens.
(See attached file: admReception.jsp)(See attached file:
ReadMailForm.java)(See
attached file: ReceptionHandlerAction.java)(See attached file:
struts-config.xml)
Meissa
Postfach 4711 <po...@gmx.de> on 07/11/2002 15:04:56
Veuillez répondre à "Struts Users Mailing List"
<st...@jakarta.apache.org>
Pour : "Struts Users Mailing List" <st...@jakarta.apache.org>
cc :
Objet : Re: No getter method for property message
Hello meissa,
could you please mail your "/filterMails" action mapping, the
corresponding form bean, and action form?
Thursday, November 7, 2002, 2:02:20 PM, you wrote:
mSbf> I'm tearing my hair off about this very strange
mSbf> error message.
mSbf> here it is.
mSbf> javax.servlet.ServletException: No getter method for property
targetDir of
bean
mSbf> org.apache.struts.taglib.html.BEAN
mSbf> I get it when my jsp is called. it seems like my own form bean is not
mSbf> recognized even when I do define all
mSbf> thins in my config file.
mSbf> here is the definition in the struts config file
mSbf> <form-bean name="readMailForm"
mSbf> type="com.bpam.mail.forms.ReadingMailForm"/>
mSbf> <action path="/initReception"
mSbf> name="readMailForm"
mSbf> type="com.bpam.mail.actions.CreateReceptionAction"
mSbf> scope="request"
mSbf> validate="false">
mSbf> <forward name="success" path="/admReception.jsp"/>
mSbf> </action>
mSbf> the form bean class contains simple String attributes.
mSbf> in my jsp, the form is defined like this :
mSbf> <html:form action="/filterMails">
mSbf> <html:hidden property="taskAction" value="save"/>
mSbf> <table border="0" width="90%" align="center" CELLPADDING="0"
CELLSPACING=
mSbf> "1" border="0" cla"form">
mSbf> <tr height="40">
mSbf> <td width="3%"> </td>
mSbf> <td><bean:message key="libelle.repertoire"/></td>
mSbf> <td>
mSbf> <html:text property="targetDir" size="30"
maxlength=
"50"/>> *
mSbf> </td>
mSbf> </tr>
mSbf> </table>
mSbf> </html:form>
mSbf> when I call them in admReception.jsp, I get error message above saying
that the
mSbf> targetDir has no getter method. what' wrong.
mSbf> I've searching the all archive list, but there is nothing similar to
my
problem.
mSbf> if someone can help .
mSbf> Meissa
mSbf> --
mSbf> To unsubscribe, e-mail: <
mailto:struts-user-unsubscribe@jakarta.apache.org>
mSbf> For additional commands, e-mail: <
mailto:struts-user-help@jakarta.apache.org>
--
Best regards,
Dirk
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>