首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

为什么在使用core标签后,提示Property '' not found on type java.lang.String,该怎么解决

2012-01-28 
为什么在使用core标签后,提示Property not found on type java.lang.String我在使用core标签后出现Prop

为什么在使用core标签后,提示Property '' not found on type java.lang.String
我在使用core标签后出现Property 'userable' not found on type java.lang.String这个错误
而同样的东西在logic标签中能正确显示,
还有我要是在core标签中只输出一个数据来就没有问题,jstl.jar,standard.jar 文件也拷贝到lib目录下了
c.tld也拷贝到了正确的位置,
代码:

HTML code
<logic:iterate id="user" name="aa">            <tr>             <td>    <bean:write name="user" property="username" />    </td>                <td>    <bean:write name="user" property="usertruename" /></td>                <td>    <bean:write name="user" property="userable" />    </td>                <td>    <bean:write name="user" property="userbranch" /></td>                <td>    <bean:write name="user" property="userjob" /></td>                <td>    <bean:write name="user" property="usersex" /></td>                <td>    <bean:write name="user" property="userphone" />    </td>                <td>    <bean:write name="user" property="useremail" />    </td>                <td>    <bean:write name="user" property="useraddress" />    </td>                <td>    <bean:write name="user" property="useraccesstimes" /></td>            </tr>        </logic:iterate>        <c:forEach items="aa" var="user">            <tr>                                <td>    ${user.userable}</td>                <td>    ${user.userbranch}</td>            </tr>        </c:forEach>


[解决办法]
<c:forEach items="aa" var="${user}">

[解决办法]
探讨
<c:forEach items="aa" var="${user}">


[解决办法]
看的太快了。
呵呵。。。。。。。。。。。。
试试 3楼的吧。

热点排行