JSP拔萃
来源:互联网 发布:运营数据分析方法 编辑:程序博客网 时间:2024/04/28 22:58
<jsp:setProperty name="foo" property="fruit" param="fruit" />
相当于调用foo.setFruit(request.getParameter("fruit"))
<jsp:setProperty name="foo" property="fruit" value="fruit" />
相当于调用foo.setFruit(request.getParameter("fruit"))
<jsp:setProperty name="foo" property="fruit" value="fruit" />
相当于调用foo.setFruit("fruit")
<jsp:setProperty name="foo" property="*" />
储存用户在Jsp输入的所有值,用于匹配Bean中的属性。在Bean中的属性的名字必须和request对象中的参数名一致.
<%@ include file="foo.jsp" %>
包含另外的jsp
<jsp:forward page="one.jsp"/> 跳转页面
getServletConfig().getServletContext().getRequestDispatcher( "/jsp/jsptoserv/hello.jsp").forward(request, response); ServerLet to Jsp
IF
<c:if test="${2>0}"> <p>It's true that (2>0)! Working.</p> </c:if>
Foreach
<c:forEach var="item" begin="1" end="10"> ${item} </c:forEach> <% Vector v = new Vector(); v.add("One"); v.add("Two"); v.add("Three"); v.add("Four"); pageContext.setAttribute("vector", v); %> <h3>Iterating over a Vector</h3> <c:forEach items="${vector}" var="item" > ${item} </c:forEach>
Switch Choose
<c:choose> <c:when test="${index == 1}"> One!<br/> </c:when> <c:when test="${index == 4}"> Four!<br/> </c:when> <c:when test="${index == 3}"> Three!<br/> </c:when> <c:otherwise> Huh?<br/> </c:otherwise> </c:choose>
- JSP拔萃
- 拔筋------拔颈
- 拔叉
- 拔罐
- 拔萝卜
- 拔智齿
- 面试一些点拔
- 拔智齿小记
- 拔智齿记
- 拔罐治疗
- 电话拔号程序
- 监控外围设备插拔
- RAS拔号上网
- android电话拔打
- 检测手机耳机插拔
- 拔智齿的经历
- 开始了,魁拔!
- 畔赋澄碳分逞杖枚瘟资下司于补拔
- 2013.9.7
- 04-windows的搜索功能的应用
- UVa 11396 - Claw Decomposition(二分图判定,染色法,dfs)
- UVA10817-----Headmaster's Headache-----状态压缩的背包(记忆化搜索实现)
- 进程控制
- JSP拔萃
- 博客系统不好用!
- 【数据结构与算法】汉诺塔算法——C语言递归实现
- 程序员的学习与积累
- 1522包含min函数的栈
- POJ 1604 求大数N的阶乘的变型
- 【数据结构与算法】基本数据结构——队列的顺序表示
- 架构介绍
- Sicily 1001. Alphacode