当前位置: 代码迷 >> Web前端 >> decorators 施用
  详细解决方案

decorators 施用

热度:27   发布时间:2012-11-08 08:48:11.0
decorators 应用

http://www.blogjava.net/liuwentao253/default.html?page=30

可结合sitemesh.jar decorators实现: WEB-INF下建立decorators.xml(待学)
??? 调用方式:
??? ??? 服务器端RequestThreadUtils.setRetErr(msg);RequestThreadUtils.setsetRetMsg(msg);
??? ??? 客户端jsp中<c:if test="${!empty retmsg}"><div style="background:#E1F2C0; color:#348415;">${retmsg}</div></c:if>
??? ??? ??? <c:if test="${!empty reterr}"><div style="background:#FFE3D6; color:#f00;">${reterr}</div></c:if>