jspµÇ¼½çÃæ+access
1¡¢Óû§µÇ¼½çÃælog.jsp
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!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>Óû§µÇ½</title>
</head>
<body>
<form method="post" action="Login.jsp">
<DIV align="center">
<P>Óû§Ãû<input type ="text" name="userName" value="" size="15" height="15"></P>
<P>ÃÜ Âë<input type ="password" name="Password1" value="" size="15" height="15"></P>
<P><INPUT type=submit value=µÇ½ name=B1> <INPUT type=reset value=ÖØÌî name=B2> <INPUT onclick="window.open('newuser.jsp')" type=button value=×¢²á name=B3></P>
</DIV>
</form>
<form method="get" action="sh.jsp"><input type="submit" name="check" value="²éѯ"></form>
</body>
</html>
2¡¢´¦ÀíÓû§µÇ¼µÄ³ÌÐòlogin.jsp
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="ConnDB.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>µÇ¼¼ì²é</title>
</head>
<body>
<%
String userName = request.getParameter("userName");
String Password = request.getParameter("Password1");
Statement stmt_Check=conn.createStatement();
String sql = "select * from admin where userPwd='"+ Password + "' and userName='" + userName +"'";
ResultSet RsLoginCheck = stmt_Chec
Ïà¹ØÎĵµ£º
ÓÃORACLE9i¡¢oracle8¡¢Óкܳ¤µÄÒ»¶Îʱ¼ä£¬ÎÒ°ÑÓÃÓÚJSPÖÐÐèҪעÒâµÄÎÊÌâÔÚÕâÀïд³öÀ´£¬½ö¹©´ó¼Ò²Î¿¼ÁË¡£
¡¡¡¡Ò»¡¢ÈçºÎÈ¥´¦ÀíClob¡¢BLOBµÄ´óÀàÐÍ
¡¡¡¡CLOB¿ÉÓÃÓÚ´æ·Å´óÎı¾Êý¾Ý,×î¶à¿É´æ´¢4GBÊý¾Ý,ÔÚÓ¦Óÿª·¢ÖбȽϳ£¼û.javaÌṩµÄsql.ClobÀàÓëÖ®¶ÔÓ¦.ËüÌṩÁ½¸ö·½·¨À´¶ÁÈ¡ClobµÄÊý¾Ý:
¡¡¡¡getCharacterStream() ·½·¨·µ»Ø° ......
<script language="javascript">
var times=6;
clock();
function clock()
{
window.setTimeout('clock()',1000);
times=times-1;
time.innerHTML =times;
}
</script>
<head>
<meta http-equiv= "Refresh" content= "5;url=index.jsp "& ......
ÔÚÎÒÃÇ×°ºÃMyEclipseʱ,ÓÐʱ˫»÷´ò¿ªjspÒ³Ãæ,
»áÌáʾ´íÎó,ÎÞ·¨ÏÔÊ¾Ò³Ãæ.
Òò´ËÒª½«jspµÄĬÈÏ´ò¿ª·½Ê½¸Ä³É´úÂëÊÔͼ£º
°ì·¨:Ôڲ˵¥À¸µÄ
1.window—->perferences—–>General——->editors——>file associations
2.Ñ¡Ôñjsp——->Ñ¡ÔñÏàÓ¦µÄeditor¡¡Îªdef ......
'-------------------------------------------------------------------ÒÔÏÂÊǵǼ´úÂë
<%@ page contentType="text/html; charset=gb2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3 ......
<body style="height:100%;">
-------------------------------------------------------------------Ò»¿ªÊ¼µÄÒ³Ãæ----------------------
fdasfsdfadf
<input name="button2" onclick="ShopConfirm('fdsaf')" value="µãÎÒ" type="button"/>
--------------------------------------------------------- ......