<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%
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>常用HTML窗口对象</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form>
<div align="left">
姓名:
<input type="text" name="name" size="20" maxlength="10" />
<%--最多能接受10个字符 --%>
<br />
性别:男
<input type="radio" name="sex" value="男" checked="checked" />
<%--添加单选按钮,默认选中 --%>
女
<input type="radio" name="sex" value="女" />
E-Mail:
<input type="text" name="email" size="30" />
<br />
<br />
观点:
<textarea name="suggest" rows="6" cols="30"></textarea>
<br />
<br />
<input type="submit" value="提交" />
<input type="reset" value="清空" />
</div>
</form>
</body>
</html>