You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fr...@b-rail.be on 2002/04/19 12:47:00 UTC
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=""> </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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>