<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>first.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<body>
<form action="index.jsp">
<input type="text" name="username" />
<input type="checkbox" name="xingqu" value="篮球" />
篮球
<input type="checkbox" name="xingqu" value="乒乓" />
乒乓
<input type="checkbox" name="xingqu" value="滑冰" />
滑冰
<input type="submit" value="提交" />
</form>
</body>
<html>
<head>
<title>first.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<body>
<form action="index.jsp">
<input type="text" name="username" />
<input type="checkbox" name="xingqu" value="篮球" />
篮球
<input type="checkbox" name="xingqu" value="乒乓" />
乒乓
<input type="checkbox" name="xingqu" value="滑冰" />
滑冰
<input type="submit" value="提交" />
</form>
</body>
</html>
进行输出:
${param.username}
${paramValues.xingqu[1]}