关于logic:present的疑惑

lamb218 2007-12-25 10:24:13
Action部分代码如下:
WEBMessage wm = new WEBMessage();
wm.setType(-2);
wm.setMessage(mr.getMessage(locale, "errors.system.overtime"));
request.setAttribute("wm", wm);
return actionMapping.findForward("list");

JSP中部分代码:
<logic:present name="wm" scope="request"> ....这里条件不等于true
alert("<bean:write name="wm" property="message"/>");
</logic:present>

我用request.getAttribute("wm")都可以取到,但是用logic:present就是不可以
...全文
259 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
pwjack 2007-12-25
  • 打赏
  • 举报
回复
<script></script>
NicholasYJ 2007-12-25
  • 打赏
  • 举报
回复
你把“alert(" <bean:write name="wm" property="message"/> "); ”改成“alert("ok?");”试试看还能打出来,MS在alert()里用<bean:write>有问题!

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧