struts2 标签里面不能使用el表达式可以使用ongl表达式
2015-11-25 09:43
573 查看
struts2 标签里面不能使用el表达式只可以使用ongl表达式
使用el表达式的话出错误的
According to TLD or attribute directive in tag file, attribute disabled does not accept any expressions
如
<s:select list="tmpList" name="${eleName}"></s:select>
提示错误信息:According to TLD or attribute directive in tag file, attribute disabled does not accept any expressions
但是可以使用ongl表达式
把$修改为%即可
<s:select list="tmpList" name="%{eleName}"></s:select>
这样就可以了
${}EL表达式可以直接输出内容,但是ONGL不行,它是与STRUTS
的标签相结合使用的
使用el表达式的话出错误的
According to TLD or attribute directive in tag file, attribute disabled does not accept any expressions
如
<s:select list="tmpList" name="${eleName}"></s:select>
提示错误信息:According to TLD or attribute directive in tag file, attribute disabled does not accept any expressions
但是可以使用ongl表达式
把$修改为%即可
<s:select list="tmpList" name="%{eleName}"></s:select>
这样就可以了
${}EL表达式可以直接输出内容,但是ONGL不行,它是与STRUTS
的标签相结合使用的
相关文章推荐
- Struts - 标签库
- struts1.0于struts2.0的比较
- Struts2中关于namespace的学习心得
- Struts2----自定义action的学习心得
- HTTP Status 404 - There is no Action mapped for namespace [/] and action name [login!welcome] associ
- struts2
- struts 学习笔记
- struts2.0拦截器(实现未登录的用户不能访问系统的页面)(转)
- Struts2+jQuery+JSON实现异步交互
- 软件开发疑惑解答
- struts2登陆拦截器
- struts2框架原理
- web.xml
- web.xml
- struts2框架原理
- struts2登陆拦截器
- liferay中配置Struts2
- strust2--异常
- Struts2部署后抛出404 Tomcat work目录下均为空目录
- struts2 拦截器和actioninvocation