📄 buy3.jsp.txt
字号:
<%@ page contentType="text/html;charset=gb2312" session="true"%>
<!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=gb2312">
<title>user</title>
<style type="text/css">
<!--
.style1 {
color: #0033FF;
font-weight: bold;
}
.style2 {
font-size: 18px;
font-family: Arial, Helvetica, sans-serif;
}
.style5 {font-family: Arial, Helvetica, sans-serif}
.style6 {color: #00CC00}
.style7 {color: #3399FF}
.style8 {color: #FF6633}
-->
</style>
</head>
<body>
<% response.setContentType("text/html;charset=GB2312");
request.setCharacterEncoding("gb2312");
String[] fruit=request.getParameterValues("fruit");
if(!fruit.equals(null))
{
for(int i=0;i<fruit.length;i++)
{
fruit[i]=new String(fruit[i].getBytes("ISO-8859-1"),"GB2312");
}
}
session.setAttribute("fruit",fruit);
%>
<form method="get" action="show.jsp">
<table width="400" border="1" align="center">
<tr bgcolor="#99FFFF">
<td colspan="2"><div align="center" class="style1 style2">请填写您的用户信息:</div></td>
</tr>
<tr>
<td ><div align="right" class="style6"><span class="style5">用户姓名</span>:</div></td>
<td >
<div align="center">
<input type="text" name="username">
</div></td>
</tr>
<tr>
<td><div align="right" class="style5 style7"> 用户编号:</div></td>
<td>
<div align="center">
<input type="text" name="userid">
</div></td>
</tr>
<tr>
<td><div align="right" class="style8"><span class="style5">用户地址</span>:</div></td>
<td>
<div align="center">
<input type="text" name="address">
</div></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -