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

EL 输出 struts1 formbean中属性的有关问题

2012-02-20 
EL 输出 struts1 formbean中属性的问题EL 不能正确输出属性值bean:write nameloginForm propertyuse

EL 输出 struts1 formbean中属性的问题
EL 不能正确输出属性值
<bean:write name="loginForm" property="user.userName"/> : 可以正确输出结果
${loginForm.user.userName} : 页面仍然显示 ${loginForm.user.userName}

[解决办法]
版本问题,必须加上这个<%@ page isELIgnored ="false"%>

热点排行