package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
out.write("\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
out.write(" <title>主页</title>\n");
out.write(" <style type=\"text/css\">\n");
out.write(" <!--\n");
out.write(" .STYLE5 {\n");
out.write(" font-size: xx-large;\n");
out.write(" font-weight: bold;\n");
out.write(" font-style: italic;\n");
out.write(" }\n");
out.write(" -->\n");
out.write(" </style>\n");
out.write(" </head>\n");
out.write(" <script language=JavaScript>\n");
out.write(" //显示当前时间\n");
out.write(" var timerID = null;\n");
out.write(" var timerRunning = false;\n");
out.write(" function stopclock (){\n");
out.write(" if(timerRunning)\n");
out.write(" clearTimeout(timerID);\n");
out.write(" timerRunning = false;}\n");
out.write(" function startclock () {\n");
out.write(" stopclock();\n");
out.write(" showtime();}\n");
out.write(" function showtime () {\n");
out.write(" \n");
out.write(" var now = new Date();\n");
out.write(" var hours = now.getHours();\n");
out.write(" var minutes = now.getMinutes();\n");
out.write(" var seconds = now.getSeconds()\n");
out.write("\n");
out.write(" var timeValue = \"\" +((hours >= 12) ? \"下午 \" : \"上午 \" )\n");
out.write(" \n");
out.write(" timeValue += ((hours >12) ? hours -12 :hours)\n");
out.write(" timeValue += ((minutes < 10) ? \":0\" : \":\") + minutes\n");
out.write(" timeValue += ((seconds < 10) ? \":0\" : \":\") + seconds\n");
out.write(" document.clock.thetime.value = timeValue;\n");
out.write(" timerID = setTimeout(\"showtime()\",1000);\n");
out.write(" timerRunning = true;}\n");
out.write(" //验证用户名、密码和验证码是否正确\n");
out.write(" var str = String(Math.floor(Math.random() * 10000));\n");
out.write(" for(var i = str.length; i < 4; i++) {\n");
out.write(" str += \"0\";\n");
out.write(" }\n");
out.write("\n");
out.write(" function ocy() {\n");
out.write(" document.getElementById(\"name\").focus();\n");
out.write(" document.getElementById(\"abc\").innerHTML = str;\n");
out.write(" }\n");
out.write("\n");
out.write(" function xhj() {\n");
out.write(" if(document.getElementById(\"name\").value == \"\") {\n");
out.write(" alert(\"请输入用户名。\");\n");
out.write(" document.getElementById(\"name\").focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.getElementById(\"password\").value == \"\") {\n");
out.write(" alert(\"请输入密码。\");\n");
out.write(" document.getElementById(\"password\").focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.getElementById(\"yanzm\").value == \"\") {\n");
out.write(" alert(\"请输入验证码。\");\n");
out.write(" document.getElementById(\"yanzm\").focus();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.getElementById(\"yanzm\").value != str) {\n");
out.write(" alert(\"对不起,验证码输入不正确,请重新输入。\");\n");
out.write(" document.getElementById(\"yanzm\").value = \"\";;\n");
out.write(" document.getElementById(\"yanzm\").focus();\n");
out.write(" yll();\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" return true;\n");
out.write(" }\n");
out.write("\n");
out.write(" function liy() {\n");
out.write(" document.getElementById(\"name\").value = \"\";\n");
out.write(" document.getElementById(\"password\").value = \"\";\n");
out.write(" document.getElementById(\"name\").focus();\n");
out.write(" }\n");
out.write("\n");
out.write(" function yll() {\n");
out.write(" str = String(Math.floor(Math.random() * 10000));\n");
out.write(" for(var i = str.length; i < 4; i++) {\n");
out.write(" str += \"0\";\n");
out.write(" }\n");
out.write(" document.getElementById(\"abc\").innerHTML = str;\n");
out.write(" }\n");
out.write(" \n");
out.write(" </script>\n");
out.write("\n");
out.write("\n");
out.write(" <body onload=\"ocy();startclock()\">\n");
out.write(" <center><h1><span class=\"STYLE5\">欢迎光临!</span> </h1>\n");
out.write(" </center>\n");
out.write(" <form name=clock >\n");
out.write(" <input name=thetime style=\"font-size: 9pt;color:#000000;border:0px none; \" size=12>\n");
out.write(" </form>\n");
out.write(" <table width=\"998\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
out.write(" <!--DWLayoutDefaultTable-->\n");
out.write(" <tr>\n");
out.write(" <td width=\"347\" height=\"55\"> </td>\n");
out.write(" <td width=\"370\"> </td>\n");
out.write(" <td width=\"281\"> </td
jsp+javascript+jdbc实现登录和注册
4星 · 超过85%的资源 需积分: 49 61 浏览量
2010-03-25
09:09:08
上传
评论 1
收藏 56KB RAR 举报
danieliu2009
- 粉丝: 0
- 资源: 1
最新资源
- 基于OpenCV的案例:图像边缘、角点和轮廓检测,图像分割,图像增强;图片拼接;运动目标检测,颜色直方图比较,三帧帧差法,抠图
- SmartPlug-html大一笔记
- SmartPlug-proteusdemo
- Preliminary Findings on Handmade Rattan Baby Crib andBassinet Designs Regarding.zip
- aveebfq_v1.2.83_downyi.com.apk
- 基于有机发光二极管(OLED)的建模优化算法的matlab仿真源码+数据+文档说明+项目说明(高分课程设计)
- hash01-test.c 本人哈希表(一)的示例代码,仅供参考!
- 处理数据.py
- 软件实施计划表.xls
- 软件开发应用软件项目提交文档目录要求(全过程)(推荐文档).xls
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
前往页