jsp 中使用 struts 标签 EL 表达式编译不通过
2012-03-30 15:19
197 查看
在jsp代码中:
结果运行之后,网页上出现这么句:
According to TLD or attribute directive in tag file, attribute test does not accept any expressions
这个是因为不能识别EL表达式出现的问题。
在jsp首部 <%@ page%>中添加一个值:
再编译就可以了。
<s:set name="score" value="80"></s:set> <s:if test="${score > 60}"> 你的成绩及格了 </s:if>
结果运行之后,网页上出现这么句:
According to TLD or attribute directive in tag file, attribute test does not accept any expressions
这个是因为不能识别EL表达式出现的问题。
在jsp首部 <%@ page%>中添加一个值:
<%@ page isELIgnored="true"%>
再编译就可以了。
相关文章推荐
- JSP EL标签不能和struts tag 一起使用,只能和JSTL一起使用了。
- EL表达式。jsp ${sessionScope.user}的使用方法
- 【Struts2五】ValueStack以及ognl表达式二(经常使用标签)
- 在JSP中使用el标签传递值(两个jsp页面之间传值)
- el表达式在jsp中无法使用解决办法
- 在jsp页面中使用struts标签时要注意
- EL表达式 Struts标签 取Set集合第一个元素出现org.hibernate.collection.PersistentSet问题
- 在JSP中使用el函数标签获取默认值(男女性别选项)
- 直接访问jsp不能使用struts标签
- jsp使用jstl、el标签时出现According to TLD or attribute directive in tag file, attribute items does not acc错误
- JSP 中使用Struts标签出现的错误,解决办法
- JSP标签JSTL的使用(1)--表达式操作
- jsp页面用struts标签表达式判断
- idea下Maven项目的webapp下的jsp页面无法使用el或者jstl表达式
- 使用struts标签在JSP格式化输出日期型属性值
- 正则表达式运用到JSP页面(使用在input 标签内)
- JSP标签JSTL的使用(1)--表达式操作
- 解决如何通过循环来使用数据库的值设置jsp的select标签的option值
- jsp--el/c/ognl/struts标签开发案例对比
- jsp中使用jstl与EL标签创建九九乘法表