标签:des cWeb style blog http color os io 使用
jstl常用在html嵌套
<body> <% session.setAttribute("q", "yushi"); request.setAttribute("w", "阿毛"); ArrayList<String> list =new ArrayList<String>(); list.add("大户"); list.add("小马"); session.setAttribute("ls", list); %> <a href="#" ><c:out value="${requestScope.w} "/></a> <c:forEach begin="1" step="10" var="s" end="100" varStatus="num"> <a href="#"><c:out value="${s}+${num.count }"/> </a> </c:forEach> <br> <c:forEach items="${sessionScope.ls }" var="it"> <h3><c:out value="${it }"></c:out></h3> </c:forEach> <br> <table> <tr> <td> <c:url value="http:www.baidu.com" var="login"> <c:param name="id" value="${requestScope.w}"></c:param> <c:param name="name" value="yushi"></c:param> </c:url> <a href="${login }"/>登录 </td> </tr> </table> </body>
浏览器:
获取页面之间参数:
<c:param />
总结:
标签:des cWeb style blog http color os io 使用
原文地址:http://www.cnblogs.com/rbsky/p/3957012.html