posts - 0, comments - 77, trackbacks - 0, articles - 356
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

logic:equal,logic:present用法

Posted on 2007-01-30 14:23 semovy 阅读(3233) 评论(0)  编辑  收藏 所属分类: struts
1.
<logic:equal name="DeliverProveForm" property="userAction" value="create">
如果DeliverProveForm里的属性userAction的值等于create就执行这儿。
</logic:equal>

2.
<logic:present name="tipmsg">
如果在你的action中设置了tipmsg就执行到这儿。如:request.setAttribute("tipmsg","提示信息")或session.setAttribute("tipmsg","提示信息")
<bean:write name="tipmsg"/>
</logic:present> 

只有注册用户登录后才能发表评论。


网站导航: