Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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>ÃÜ&nbsp;&nbsp;Âë<input type ="password" name="Password1" value="" size="15" height="15"></P>
<P><INPUT type=submit value=µÇ½ name=B1>&nbsp;&nbsp;<INPUT type=reset value=ÖØÌî name=B2>&nbsp;&nbsp;<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


Ïà¹ØÎĵµ£º

OracleÊý¾Ý¿âºÍJSPÁ¬½ÓҪעÒâµÄһЩÎÊÌâ

ÓÃORACLE9i¡¢oracle8¡¢Óкܳ¤µÄÒ»¶Îʱ¼ä£¬ÎÒ°ÑÓÃÓÚJSPÖÐÐèҪעÒâµÄÎÊÌâÔÚÕâÀïд³öÀ´£¬½ö¹©´ó¼Ò²Î¿¼ÁË¡£
¡¡¡¡Ò»¡¢ÈçºÎÈ¥´¦ÀíClob¡¢BLOBµÄ´óÀàÐÍ
¡¡¡¡CLOB¿ÉÓÃÓÚ´æ·Å´óÎı¾Êý¾Ý,×î¶à¿É´æ´¢4GBÊý¾Ý,ÔÚÓ¦Óÿª·¢ÖбȽϳ£¼û.javaÌṩµÄsql.ClobÀàÓëÖ®¶ÔÓ¦.ËüÌṩÁ½¸ö·½·¨À´¶ÁÈ¡ClobµÄÊý¾Ý:
¡¡¡¡getCharacterStream() ·½·¨·µ»Ø° ......

css+jsp tagʵÏÖÊ÷ÐͲ˵¥

ÎÒÃǵĿª·¢·½Ê½ÊÇÓÉdemoÈËÔ±Íê³ÉϵͳµÄ¾²Ì¬Ò³Ã棬²¢Í¨¹ýcss½øÐÐÃÀ»¯¡£
Ϊ×î´ó¿ÉÄÜÀûÓÃÃÀ¹¤Íê³ÉµÄ¾²Ì¬Ò³Ã棬ÎÒÃÇÐèÒª¾¡Á¿¼õÉÙ¶ÔÔ­htmlµÄ³å»÷£¬Òò´ËÎÒÊ×ÏÈÏëµ½µÄFreemarker¡£
µ«ÊÇFreemarker×îÖÕÈÃÎÒ¿Õϲһ³¡£¬×îÖÕ×Ô¶¨ÒåÁËÒ»¸ö¿ÉÒԵݹéǶÌ×µÄjsp tagÀ´´ïµ½Õâ¸öÄ¿µÄ¡£
ÏÂÃæÊǽâ¾öÕâ¸öÎÊÌâµÄ¹ý³Ì£º
 
ÓÃcssÄ£°æsdmen ......

MyEclipseÖв»ÄÜÌáʾJSPÒ³ÃæµÄhtml±ê¼ÇÊôÐÔÖµ£¿

ÄãµÄ¿ì½Ý½¨ÉèÖÃÓÐÎÊÌ⣬ÄãÖØÐÂÉèÖÃÒ»ÏÂÔÚ window --> Perferences--> General--> keys
½«Content Assist¿ì½Ý¼üÉèÖóÉAlt + /¾Í¿ÉÒÔÁË
Èç¹ûÄã·¢ÏÖµãÁËApply¹ØÁËÖ®ºó£¬Ôٴδò¿ªContent AssistµÄ¿ì½Ý¼üûÓиıäµÄ»°£¬ÄÇÊÇÒòΪÏÂÃæÓÐÒ»¸öÑ¡ÏîÒѾ­Óõ½ÁËAlt + /£¬¾ßÌåÊÇÄÄÒ»¸öÎҼDz»ÇåÁË£¬Äã°ÑÄǸöcommandµÄ¿ì½Ý¼ü¸ ......

JSP¶ÁÎļþ´úÂë

<%@ page contentType="text/html; charset=gbk" language="java" import="java.io.*" buffer="64kb" %>
      <%
 
   String path_in = "";
   String content = "";
 
   path_in = request.getRealPath("/")+"admin"+File.separator+ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ