简单的网上试题自动评测---试题 相关代码
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>简单的网上试题自动评测---试题</title>
</head>
<body>
<form action="a.jsp" method="post">
一、2+3=?<br>
<input type="radio" name="r1" value="2"checked="checked">2
<input type="radio" name="r1" value="3">3
<input type="radio" name="r1" value="4">4
<input type="radio" name="r1" value="5">5<BR>
二、下列那些是偶数?<br>
<input type="checkbox" name="c1" value="2">2
<input type="checkbox" name="c1" value="3">3
<input type="checkbox" name="c1" value="4">4
<input type="checkbox" name="c1" value="5">5<br>
三、下列哪些是动态网页?<br>
<select size="4" name="list1" multiple="multiple">
<option value="asp">ASP</option>
<option value="php">PHP</option>
<option value="htm">HTML</option>
<option value="jsp">JSP</option>
<option value="xyz" selected="selected">xyz</option>
</select><br>
五、在服务器端用来接收用户请求的对象时:
<input type="text" size="20" name="text1"><br>
<div align="left">
<blockquote>
<input type="submit" name="button1" value="提交">
<input type="reset" name="button2" value="重置">
</blockquote>
</div>
</form>
</body>
</html>