<%@ page contentType="text/html; charset=GB2312" language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
String name=request.getParameter("radName");
String password=request.getParameter("radPwd");
session.setAttribute("name",name);
session.setAttribute("pwd",password);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form name="form1" method="post" action="">
<table width="377" border="1" align="center">
<tr>
<td width="129"><div align="right">用户名:</div></td>
<td width="232"><input name="radName" type="radio" value="孤独求败" checked>
孤独求败</td>
</tr>
<tr>
<td><DIV align=right>密 码:</DIV></td>
<td><input name="radPwd" type="radio" value="123456" checked>
123456</td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit" value="重置"></td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
<%=name%>
<%=password %>
得到是的nmae=?????ó°? password=123456
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
String name=request.getParameter("radName");
String password=request.getParameter("radPwd");
session.setAttribute("name",name);
session.setAttribute("pwd",password);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form name="form1" method="post" action="">
<table width="377" border="1" align="center">
<tr>
<td width="129"><div align="right">用户名:</div></td>
<td width="232"><input name="radName" type="radio" value="孤独求败" checked>
孤独求败</td>
</tr>
<tr>
<td><DIV align=right>密 码:</DIV></td>
<td><input name="radPwd" type="radio" value="123456" checked>
123456</td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit" value="重置"></td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
<%=name%>
<%=password %>
得到是的nmae=?????ó°? password=123456