jspÖÐÒÔ·þÎñÆ÷ʱ¼ä×÷ΪÆðʼ£¬ÏÔʾʱÖÓµÄС³ÌÐò
Ò»°ãµÄÍøÒ³¶¼ÓÐÕâÖÖ¹¦ÄÜ£ºÔÚÒ³ÃæÉ϶¯Ì¬ÏÔʾµ±Ç°Ê±¼ä£¬Õâ¸öµÄʵÏÖÒ²ºÜ¼òµ¥£¬»ù±¾ÉÏÒ»ÐдúÂë¾ÍʵÏÖÁË
<span id="curTime"></span>
<script type="text/javascript"><!--
setInterval("curTime.innerHTML=new Date().toLocaleString()+' ÐÇÆÚ'+'ÈÕÒ»¶þÈýËÄÎåÁù'.charAt(new Date().getDay());",1000);
// --></script>
ÎÒÔÚ×öOAµÄÒ»¸ö¿¼ÇÚ³ÌÐòʱ£¬Òª¶¯Ì¬ÏÔʾ·þÎñÆ÷µÄʱ¼ä£¬ÈÃÔ±¹¤ÖªµÀµ±Ç°ÊÇ·ñ¿ÉÒÔÏ°࣬¶ø¿Í»§»úÓÉÓÚÖÖÖÖÔÒòʱ¼äÓë·þÎñÆ÷²¢²»Ò»Ö£¬ËùÒÔ²»ÄÜÓÃÉÏÃæµÄ´úÂ룬¸Ä½øÁËһϣº
<span id="curTime"></span>
<script type="text/javascript"><!--
// Ò³ÃæÒª¿ªÊ¼¼ÆʱµÄÈÕÆÚ£¨Ò»°ãÊÇ·þÎñÆ÷ÈÕÆÚ£©,±ÈÈç2010-01-12 11:34:55¿ªÊ¼¼Æʱ
var beginAdd = new Date(2010,0,12,11,34,55);
var beginDate = new Date();
function ShowTime() {
var now = new Date();
var diff = (now - beginDate);
beginAdd.setMilliseconds(beginAdd.getMilliseconds() + diff);
beginDate = now;
document.getElementById("curTime").innerHTML = beginAdd.toLocaleString()+' ÐÇÆÚ'+'ÈÕÒ»¶þÈýËÄÎåÁù'.charAt(beginAdd.getDay());
}
setInterval("ShowTime();",1000);
// --></script>
×îºó¼ÓÉÏÒ»¸ömeizzµÄ¸ñʽ»¯º¯Êý£¨ÂÔÓÐÐÞÕý£©£¬×îÖÕ°æÈçÏ£º
<span id="curTime"></span>
<script type="text/javascript"><!--
// Ò³ÃæÒª¿ªÊ¼¼ÆʱµÄÈÕÆÚ£¨Ò»°ãÊÇ·þÎñÆ÷ÈÕÆÚ£©,±ÈÈç2010-01-12 11:34:55¿ªÊ¼¼Æʱ
var beginAdd = new Date(2010,0,12,11,34,55);
var beginDate = new Date();
function abc() {
var now = new Date();
var diff = (now - beginDate);
beginAdd.setMilliseconds(beginAdd.getMilliseconds() + diff);
beginDate = now;
document.getElementById("curTime").innerHTML = beginAdd.format("yyyyÄêMMÔÂddÈÕ hh:mm:ss ÐÇÆÚW");
}
setInterval("abc();",1000);
Date.prototype.format = functi
Ïà¹ØÎĵµ£º
<c:if>ÓÃÓÚ
Á÷³Ì¿ØÖÆ
Óï·¨
1:
<c:if
test=”testCondition” var=”varName”
[scope=”page|request|session|application”]/>
Óï·¨
2:
<c:if
test=”testCondition” var=”varName”
[scope=&rdquo ......
ʵÑ鱨¸æ
Ò». »ù±¾Ë¼Â·¼°ÊµÑé½á¹û£¨¼Ç¼¸÷ÖÖÔËÐÐÇé¿ö»òÒ³ÃæµÄÔËÐÐЧ¹û£©£»
1¡¢Ê¹ÓÃTOMCAT·þÎñÆ÷ÅäÖÃjspÓ¦ÓÃ
1£©´ò¿ªTOMCAT/webapps×ÓĿ¼£¬´´½¨Ò»webÓ¦Óã¨Èçmyweb£©£¬½«example0.jspÓëexample1.jspÎļþ¸´ÖÆÈëÄÚ£¬²¢ÔÚ¸ÃĿ¼ÏÂÉèÖÃWEB-INFĿ¼¼°web.xmlÅäÖÃÎļþ£»
2£©ÔÚä¯ÀÀÆ÷µØÖ·À¸ÊäÈëhttp://localhost:8080/myweb/ex ......
½«²ÎÊýд³É java.net.URLEncoder.encode(sContent,"gb2312")ºóÔÙ´«µÝ¡£
±ÈÈçurlÊÇ"/accept.do?content=<%=java.net.URLEncoder.encode(sContent,"UTF-8")%>";
¶Áȡʱ£¬Ê¹ÓÃ
String sc = new String(request.getParameter("content").getBytes("iso-8859-1"),"UTF-8"); ......
µ±ÔÚJSPµÄpageÖ¸ÁîÖÐÉèÖÃerrorPage="url"¾Í¿ÉÒÔÉèÖô¦ÀíÒ쳣ʼþµÄJSPÎļþ¡£Èç¿ÉÒÔÕâÑùд£º
<%@ page errorPage="error.jsp" %>
ÕâÑùµÄ»°£¬µ±Ò³ÃæÖгöÏÖÒì³£µÄÊ ......
ÖÕÓڸ㶨JSPÁ¬½ÓSQL Server 2000Êý¾Ý¿âµÄÎÊÌâÁË
2008Äê01ÔÂ29ÈÕ ÐÇÆÚ¶þ 15:54
Ç°¼¸Ì죬ƽƽͬѧһֱÔÚ¸ãJSP Á¬½ÓSQL Server 2000Êý¾Ý¿âµÄÎÊÌ⣬һֱÁ¬²»ÉÏ£¬È»ºó½ÐÎÒÈ¥°ïËû¿´¿´£¬Æ¾×ÅÒÔÇ°µÄ¾Ñ飬¸ãÁËÒ»¸öÏÂÎ磬ºÙºÙ£¡ÖÕÓÚ°ïËûÁ¬½ÓÉÏÁË£¬Ö÷Òª²½ÖèÈçÏ£º
1¡¢ÐèÒªµÄ¶«Î÷´ó¼Ò¿ÉÒÔµ½Î ......