You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/07/29 13:10:03 UTC

Query:

Subject: Query: <html:select>
From: "Sharmila Pillai" <sh...@ebi.ac.uk>
 ===
Hi,

    My jsp  looks like this:
         if(0<pathSize) {
            for (int i=0; i<pathSize; i++) {
                String element = sessionData.getPathElements("molecule",i);
                moleculeList.add(new
uk.ac.ebi.intact.test.struts.util.LabelValueBean(element, element));
            }
        }
        pageContext.setAttribute("moleculeList", moleculeList);

        ....
<html:form action="/beginTransition">
        <bean:message key="objecttype.molecule"/></td>
                <html:select property="moleculeName">
                <html:options collection="moleculeList" property="value"
labelProperty="label"/>
                </html:select>
....


ActionForm :

   protected String moleculeName = "";
   protected String getMoleculeName()
    {
        return (this.moleculeName);
    }
     protected void setMoleculeName( String name )
     {
         this.moleculeName = name;
     }


I get:
javax.servlet.ServletException: No getter method available for property
moleculeName for bean under name org.apache.struts.taglib.html.BEAN
	at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
	at
org.apache.jsp.createCondition$jspp._jspService(createCondition$jspp.java:65
0)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)...

What am I missing? Will appreciate any help.
Thanks in advance,
Sharmila.







--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>