action执行完成后,有一个参数需要传递到页面上,通过logic:equal这个tag来作逻辑判断,如何使用name、property这些属性的
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>
from:http://www.jspcn.net/htmlnews/200250133.html
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>
from:http://www.jspcn.net/htmlnews/200250133.html