| |
23. 26. 2. 获取表单参数指数 |
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>Property Access</title>
</head>
<body>
<c:if test="${pageContext.request.method=='POST'}">
<c:set var="idx" value="name" />
param.name =
<c:out value="${param.name}" />
<br />
param[name] =
<c:out value="${param[idx]}" />
<br />
</c:if>
<br />
<form method="post">Please enter your name?
<input type="text" name="name" />
<input type="Submit" />
<br />
</form>
</body>
</html>
|
|
Download: GetFormParameterByIndex.zip( 1,246 k) |
|