选择页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>
<form action="resultshow.jsp" method="post" name="form1">
<center>
<select name="like" size="2" multiple="multiple" >
<option selected value="篮球">篮球
<option value="足球">足球
<option value="游泳">游泳
<option value="登山">登山
<option value="下棋">下棋
<option value="上网">上网
</select><br>
<input type="submit" name="OK" value="提交">
</center>
</form>
</body>
</html>
显示页面:
<%@ page language="java" contentType="text/html; charset=GBK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>你的个人爱好:<%=request.Form("like") %>
</body>
</html>看了多个帖子,仍然没搞定!在线等高手……