Struts2异常----- According to TLD or attribute directive in tag file, attribute test

2014-11-24 03:05:57 · 作者: · 浏览: 0

在运行struts2标签页面时报错,代码如下:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>



index




老年人


中年人


青年人


少年



错误提示如下:
2008-3-12 10:53:13 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /taglib/ifelse.jsp(17,2)According to TLD or attribute directive in tag file, attribute test does not accept any expressions

经查找发现解决办法如下

错误提示是,该标签不能接受el表达式
struts2.0标签主要支持的是ognl表达式
所以把
改为
就ok了