JSPдÎļþ´úÂë
<%@ page contentType="text/html; charset=gbk" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*" %>
<!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>
<title></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">
-->
<link href="css/common_1.css" rel="stylesheet" type="text/css" />
<link rel="SHORTCUT ICON" href="../favicon.ico" />
<style type="text/css">
<!--
.STYLE2 {font-size: 12px}
-->
</style>
</head>
<body>
<%
String path_in = "";
String content = "";
path_in = request.getRealPath("/")+"admin"+File.separator+"manage_customer_details_edit.jsp";
try
{
PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter
(path_in)));
writer.println(
"<%"
+"@ page contentType=\"text/html; charset=gbk\" language=\"java\" import=\"java.sql.*\" errorPage=\"\" %"
+">");
writer.println("<%"+"@ page import=\"cn.com.cxweb.pc.db.databean\" %"+">");
writer.println("<%"+"@include file=\"const.jsp\"%"+">");
Ïà¹ØÎĵµ£º
ÔªÎÊÌâÀ´×ÔJSPÓëServletµÄ±È½Ï¡£
ÎÒÃÇÖªµÀServletÄܹ»Ê¹µÃJAVA´úÂë²»ÓÃÏñAppletÄÇÑùÔÚ¿Í»§ä¯ÀÀÆ÷ÖÐÔËÐУ¬Ëü»áÔÚÄã¿ØÖÆµÄÒ»¸öÓ¦Ó÷þÎñÆ÷ÉÏÔËÐС£ÔÚûÓÐʲô±³¾°ÖªÊ¶µÄǰÌáÏÂÎÒĬÈÏÕâÊÇÒ»ÖÖ¹æÔò£¬¼´Servlet¾ÍÊÇÕâÑù·¢Õ¹ÆðÀ´µÄ¡£ÔÚʵ¼ÊÓ¦ÓÃÖе±ÎÒÃÇÇëÇóÒ»¸öJSPÒ³ÃæµÄʱºò£¬JSPÊ×Ïȱ»×ª ......
ÓÃORACLE9i¡¢oracle8¡¢Óкܳ¤µÄÒ»¶Îʱ¼ä£¬ÎÒ°ÑÓÃÓÚJSPÖÐÐèҪעÒâµÄÎÊÌâÔÚÕâÀïд³öÀ´£¬½ö¹©´ó¼Ò²Î¿¼ÁË¡£
¡¡¡¡Ò»¡¢ÈçºÎÈ¥´¦ÀíClob¡¢BLOBµÄ´óÀàÐÍ
¡¡¡¡CLOB¿ÉÓÃÓÚ´æ·Å´óÎı¾Êý¾Ý,×î¶à¿É´æ´¢4GBÊý¾Ý,ÔÚÓ¦Óÿª·¢ÖбȽϳ£¼û.javaÌṩµÄsql.ClobÀàÓëÖ®¶ÔÓ¦.ËüÌṩÁ½¸ö·½·¨À´¶ÁÈ¡ClobµÄÊý¾Ý:
¡¡¡¡getCharacterStream() ·½·¨·µ»Ø° ......
1£¬DateTimeÀàÐÍÊý×Ö
ÒÔÏÂÊÇÒýÓÃÆ¬¶Î£º
µ±Ç°Ê±¼äSystem.DateTimeµÄ=ÐÂSystem.DateTimeµÄ£¨£©;
1.1Сʱ·ÖÖÓµ±Ç°ÈÕÆÚÃ룬µ±Ç°Ê±¼ä= System.DateTime.Now;
1.2¼ì²é±¾Äê¶ÈÁ®ÕþÄê= currentTime.Year;
1.3µ±Ç°Ô·ÝÁ®Õþ¸öÔÂ= currentTime.Month;
1,4²ÉÈ¡µ±ÌìÁ®ÕþÌì= currentTime.Day;&n ......
<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 "& ......