简体   繁体   中英

javax.servlet.jsp.JspException: No getter method available for property

I have this in the jsp file and it works:

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

but I want to display a 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, the errors says:

No getter method available for property certificacion.estado for bean under name org.apache.struts.taglib.html.BEAN

thanks!

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 add the tag name with value row

"The attribute name of the bean whose properties are consulted to determine which option should be pre-selected when rendering this input field. If not specified, the bean associated with the enclosing tag is utilized. [RT Expr]" look here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM