为什么在使用core标签后,提示Property '' not found on type java.lang.String,该怎么解决
为什么在使用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也拷贝到了正确的位置,
代码:
------解决方案--------------------
<c:forEach items="aa" var="${user}">
------解决方案--------------------
------解决方案--------------------
看的太快了。
呵呵。。。。。。。。。。。。
试试 3楼的吧。
我在使用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}">
------解决方案--------------------
------解决方案--------------------
看的太快了。
呵呵。。。。。。。。。。。。
试试 3楼的吧。