📄 requestaccount.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
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>My JSP 'requestAccount.jsp' starting page</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">
-->
<script language="javascript">
function check(){
if (document.all("account").value==""){
alert("请输入申请金额");
return false;
}
return true;
}
</script>
</head>
<body bgcolor="D9EAFC">
<p align="center">
<font color="aa3377" size="5">请填写如下充值申请表 </font>
</p>
<p align=center>
<form action="servlet/UserServlet" onsubmit="return check()">
<input type="hidden" name="action" value="requestAccount"/>
<table>
<tr>
<td>
申请金额:
</td>
<td>
<input type="text" name="account" />
</td>
</tr>
<tr><tr>
<td colspan="2">
<input type="submit" value="提交申请">
</td>
</tr>
</table>
</form>
<%
String errorInfo = request.getParameter("errorInfo");
if(errorInfo!=null){
if(errorInfo.equals("format_error")){
out.print("<font color='red'>输入格式错误,请输入数字格式!</font>");
}
else if(errorInfo.equals("null_error")){
out.print("<font color='red'>您的充值申请已提交,请等待管理员确认!</font>");
}
else if(errorInfo.equals("nulluser_error")){
out.print("<font color='red'>您还未登录,请先<a href='../exit.jsp'>'登录</a></font>");
}
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -