gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:25:31 25 4
gpt4 key购买 nike

我在 jsp 文件中有这个并且它有效:

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

但我想显示一个 html:像这样选择:

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

但不起作用,错误说:

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

谢谢!

最佳答案

好的伙计们,我终于可以做到了,就像这样......

<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>

我添加带有值行的标签名称

"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

关于javax.servlet.jsp.JspException : No getter method available for property 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22050255/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com