struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Olszynski" <m.olszyn...@proway.de>
Subject no getter method exception
Date Fri, 20 Dec 2002 12:12:31 GMT
Hi I get a no getter method exception (stackTrace below)

But I do have the getter method!!!



This is my Formbean:

public class TimeProofFormBean extends ActionForm {

   private Vector timeProofList = new Vector();

  public Vector getTimeProofList() {
     System.out.println("getTimeProofList()");
        return this.timeProofList;
    }

    public void setTimeProofList( Vector v ) {
    System.out.println("setTimeProofList( Vector v )");
        this.timeProofList = v;
    }

   // getter for indexed property 

  public Object getTimeProofList(int index) {
  System.out.println("public Object getTimeProofList(int index) "+index);
     if (index >= timeProofList.size())
       return new TimeProofTableBean();
     return timeProofList.get(index);
   }


    // setter for indexed property 

   public void setTimeProofList(int index,  Object value) {
     System.out.println("setTimeProofList(int index, Object value) ");
     int size=timeProofList.size();
     if (index >= size) {
       for(int i=size; i<=index; i++) {
         timeProofList.add(new TimeProofTableBean());
       }
     }
     timeProofList.set(index,value);
   }

}


13:06:10,823 ERROR [Engine] ApplicationDispatcher[/Zeiterfassung_Applikation] Se
rvlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: No getter method for property timeProofList o
f bean timeProofForm
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:248)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:575)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:498)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
.java:820)
        at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
a:395)
        at org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
        at org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
va:221)
        at org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
118)
        at org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:204)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den Entwickler!
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message