It seems there is one leading space in your jsp file.
So check this and delete it. Then it should work

Oliver

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 10:08 AM
To: [EMAIL PROTECTED]
Subject: Combo Box Selection


Hi ,

I've got this error when i want transmit the selection of a combo box:

L'erreur est survenue sur la requête 'POST' à l'URL
http://localhost/SKDBS/ProjSKDBS/resultat.jsp.
19-avr.-02 11:44:26

Information de l'exception
com.sssw.shr.http.AgoServletException
com.sssw.shr.http.AgoServletException
Erreur lors de l'envoi de la requête vers /resultat.jsp
com.sssw.shr.http.AgoServletException
javax.servlet.ServletException
No getter method for property answer of bean DemandForm

Trace de la pile
javax.servlet.ServletException: No getter method for property  answer of
bean
DemandForm
     at com.sssw.srv.jsp.AgoJspPageContext.
     handlePageException(AgoJspPageContext.java:725)
     at com.sssw.srv.jsp.AgoJspPageContext.
     handlePageException(AgoJspPageContext.java:667)
     at com.sssw.gen.jsp.resultat_jsp_585875049.
     _jspService(resultat_jsp_585875049.java:237)
     at com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:92)
     at
com.sssw.srv.resources.AgWarResource.doServletDispatch(AgWarResource.
     java:936)
     at com.sssw.srv.busobj.AgoWarServletRequestDispatcher.
     dispatch(AgoWarServletRequestDispatcher.java:50)
     at com.sssw.srv.busobj.AgoWarRequestDispatcher.
     forward(AgoWarRequestDispatcher.java:92)
     at org.apache.struts.action.ActionServlet.
     processActionForward(ActionServlet.java:1758)
     at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
     at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
com.sssw.srv.resources.AgWarResource.doServletDispatch(AgWarResource.
     java:936)
     at com.sssw.srv.resources.AgWarResource.service(AgWarResource.java:712)
     at com.sssw.srv.resources.AgWarURLResource.perform(AgWarURLResource.
     java:114)
     at com.sssw.srv.http.httpd.perform(httpd.java:4568)
     at com.sssw.srv.http.Client.processRequest(Client.java)
     at com.sssw.srv.http.Client.loop(Client.java)
     at com.sssw.srv.http.Client.runConnection(Client.java)
     at com.sssw.srv.http.Client.run(Client.java)
     at java.lang.Thread.run(Unknown Source)


In the bean DemandForm, I' ve got the get and set method defined. So io
don't
understand:

public final class DemandForm extends ActionForm
{
          public String answer="";

      public String setAnswer(String text)
     {
      return this.answer = text;
     }

     //public Category getCatSelected()
         public String getAnswer()
     {
      return this.answer;
     }


}

and in the jsp:

    <strutshtml:select property="answer" >
     <option value="">&nbsp;</option>
          <strutshtml:options property="colCategory" />
     </strutshtml:select>

It 's not the first time I've got this tupe of error.
Perhaps it's a logical error with the uses of struts.

Any help with this is greatly appreciated.

Thanks.

François Geraerts


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to