Javax.servlet.jsp.JspException: getter method not available for property

I have this in a jsp file and it works:

<display:column property="certificacion.estado"
                title="CERTIFICACION"
                sortable="true"/>

but I want to display html: select like this:

<display:column title="CERTIFICACION"
                sortable="true">
   <html:select property="certificacion.estado" >
      <html:options property="id_estado"
                    labelProperty="estado"
                    collection="listaEstadosCertificacionDTO"/>
   </html:select>
</display:column>

but does not work, errors say:

Missing getter method for certacion.estado property for bean named org.apache.struts.taglib.html.BEAN

thank!

+3
source share
1 answer

OK guys, finally I can do it, like this ...

<display:column title="CERTIFICACION"  sortable="true">
   <html:select property="certificacion.estado" name="row">
      <html:options property="id_estado"
                    labelProperty="estado"
                    collection="listaEstadosCertificacionDTO"/>
   </html:select>
</display:column>

I am adding a tag name with a string of values

"The name of the bean attribute whose properties are requested to determine which option should be pre-selected when rendering this input field. If not specified, the bean associated with the tag included in the package is used. [RT Expr]" see here

+2
source

All Articles