param.jsp
来自「《精通JSP编程 》源代码(赵强那本) 很有用的源代码」· JSP 代码 · 共 26 行
JSP
26 行
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<title>EL Example- Param.jsp</title>
</head>
<body>
<h2>EL隐含对象 param、paramValues</h2>
<fmt:requestEncoding value="GB2312" />
姓名:<c:out value="${param.username}"/></br>
密码:<c:out value="${param.password}"/></br>
性别:<c:out value="${param.sex}"/></br>
年龄:<c:out value="${param.old}"/></br>
兴趣:<c:out value="${paramValues.habit[0]}"/>
<c:out value="${paramValues.habit[1]}"/>
<c:out value="${paramValues.habit[2]}"/>
<c:out value="${paramValues.habit[3]}"/>
<c:out value="${paramValues.habit[4]}"/>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?