标签:style class blog c code java
1.jstl标签c:remove删除session
request.getSession().setAttribute("ssmsg", "修改成功");
<c:remove var="ssmsg" scope="session" />
2.jstl标签choose说明
<c:choose> <c:when test="${c.activityType==0}"> <td><a href="${c.accessUrl}${c.id}" target="_blank">预览</a></td> </c:when> <c:otherwise> <td>-</td> </c:otherwise> </c:choose>
3.动态获取request当前工程路径
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; // activity.setAccessUrl( SysConf.APP_SERVER_ADDR + "activity/look/" ); activity.setAccessUrl( basePath + "activity/look/" );
jstl删除session,choose,动态获取request当前工程路径,布布扣,bubuko.com
jstl删除session,choose,动态获取request当前工程路径
标签:style class blog c code java
原文地址:http://www.cnblogs.com/simpledev/p/3750881.html