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

¡¾jsp¡¿jspÒ³Ãæ±í¸ñºÍ±íÍ·µÄÆ´½Ó

 ×öÁËÒ»¸öСģ¿é ÐèÒª ÔÚjspÒ³ÃæÉÏ°´ÕÕExcel±¨±í¸ñʽÏÔʾ±íÍ· ËäÈ»²»¸´ÔÓ µ«ÊǵÚÒ»´Î×ö Áô¸ö¼ÍÄî
ÕâЩ¶«Î÷¸ßÊÖµ±È»ÊDz»ÐèÒªÁË µ«ÊǶÔÓÚû×ö¹ýµÄ ¿ÉÄÜ»á¸øÄãÒ»µãµãÊÕ»ñ
ҪעÒâµÄÊÇ ±íÍ·µÄrowspanºÍcolspan ºáÊúҪƥÅä ²»È»ÏÂÃæÔÙÌí¼Ó ±í¸ñ»áÂÒ ÓÐɶ²»Çå³þµÄ »¶Ó­ÁôÑÔ
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../../include_taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<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 href="../../../css/css.css" mce_href="css/css.css" rel="stylesheet" type="text/css"></head>
<SCRIPT src="../../../js/setTime.js" mce_src="js/setTime.js" type=text/javascript></SCRIPT>
<mce:script language="javascript"><!--

function check_delete() {
if (confirm("ÄãÈ·ÈÏҪɾ³ýÂð£¿")) {
return true;
}
return false;
}
// --></mce:script>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" >
<table id="table5" width="100%" height="24" border="0" cellpadding="0" cellspacing="0" background="../../../images/main_27.gif">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" background="../../../images/main_25.gif">
<tr>
<td width="6"><img src="../../../images/main_24.gif" mce_src="images/main_24.gif" height="24"></td>
<td valign="bottom" class="txtglow1">µ÷¶ÈÉú²úÈÕ±¨¡¡<c:out value="${requestScope.reportdate}"></c:out>¡¡ </td>
<td width="4"><img src="../../../images/main_26.gif" mce_src="images/main_26.gif" height="24"></td>
</


Ïà¹ØÎĵµ£º

¹ØÓÚjspÖÐ" ¶Ôֻת·¢½á¹û¼¯µÄÎÞЧ²Ù×÷: last "Òì³£

 ÒòΪ³õѧ£¬ËùÒÔ£¬ÔÚ½¨Á¢StatementʱʹÓÃĬÈϲÎÊý¡£µ¼ÖÂÔÚʹÓÃÖ´ÐÐrs.last()ʱ£¬²úÉú“java.sql.SQLException£º¶Ôֻת·¢½á¹û¼¯µÄÎÞЧ²Ù×÷£ºlast”µÄÒì³£¡£
×îºóÔÚ½¨Á¢Statementʱ¼ÓÈëÏà¹Ø²ÎÊý£¬¾Í¿ÉÒÔ½â¾öÁË¡£
²Ù×÷²éѯ½á¹û¼¯µÄ¹ý³ÌÖгöÏÖÒì³£
 
³öÏÖÒì³£µÄÓï¾ä: rs.last();
 
Òì³£µÄÏêϸÐÅ ......

JSP filter¹ýÂËÆ÷µÄ¹¦ÄܼòÒª½éÉÜ

filter¹¦ÄÜ.ËüʹÓû§¿ÉÒԸıäÒ»¸ö requestºÍÐÞ¸ÄÒ»¸öresponse. Filter ²»ÊÇÒ»¸öservlet,Ëü²»ÄܲúÉúÒ»¸öresponse,ËüÄܹ»ÔÚÒ»¸örequestµ½´ïservlet֮ǰԤ´¦Àírequest,Ò²¿ÉÒÔÔÚÀ뿪 servletʱ´¦Àíresponse.»»ÖÖ˵·¨,filterÆäʵÊÇÒ»¸ö¡±servlet chaining¡±(servlet Á´). Ò»¸öfilter °üÀ¨:
1. ÔÚservlet±»µ÷ÓÃ֮ǰ½Ø»ñ; ......

MyEclipseÐÞ¸ÄÒ³ÃæÄ£°å£¨JSPºÍHTMLµÈ£©

 
MyEclipse:ÐÞ¸ÄMyEclipse¿ª·¢¹¤¾ßÖеÄÒ³ÃæÄ£°å£¨JSPºÍHTMLµÈ£©
1.ÓÃMyEclipse¹¤¾ß¿ª·¢WebÏîÄ¿£¬ÓÐÒ»¸öºÜÆÕ±éµÄÎÊÌ⣬¾ÍÊÇÔÚн¨Ò»¸öÒ³ÃæÎļþʱ£¬ÐèÒªÐÞ¸ÄpageEncodingÖµ£¬Ò³ÃæÖÐĬÈϵÄpageEncodingÖµÒ»°ãÊÇISO-8859-1¡£
2.Èç¹ûWebÏîÄ¿ÐèÒªÖ§³ÖÖÐÎÄ£¬ÄǾͱØÐë°ÑÄǸöISO-8859-1¸ø¸Äµô£¬»»³ÉÒÔϼ¸ÖÖ£ºUTF-8¡¢GB2312 ......

JspÔËÐÐÔ­Àí

 
ÐèÒª¼ÇסµÄ֪ʶµã£º
1 ÇëÇóÓ¦´ðģʽ£¬¿Í»§¶Ë·¢ËÍÇëÇ󣬷þÎñÆ÷½øÐÐÏìÓ¦
2 JSPÎļþÊÇÔÚ·þÎñÆ÷¶ËÖ´ÐеÄ
3 ·µ»Ø¸ø¿Í»§¶ËµÄ½á¹ûÊÇJSPÎļþÖ´ÐеĽá¹û£¬²»°üº¬ÈκÎJSPÓï·¨
4 ÄÚ²¿¶ÔÏóÊÇÔÚ°ÑJSPÎļþת»»ÎªJava´úÂëµÄʱºòÉú³ÉµÄ
5 Ö´ÐеIJ¢²»ÊÇJSPÎļþ±¾Éí£¬¶øÊÇJSPת»»³ÉµÄJavaÀàµÄ¶ÔÏóµÄ·½·¨£¬ËùÒÔÓÐʱºòÐÞ¸ÄJSPÎļþ² ......

JSP/ServletÖбàÂëÎÊÌâ½â¾ö·½°¸

Ê×ÏÈ£¬ËµËµJSP/ServletÖеļ¸¸ö±àÂëµÄ×÷Óá£
 
ÔÚJSP/ServletÖÐÖ÷ÒªÓÐÒÔϼ¸¸öµØ·½¿ÉÒÔÉèÖñàÂ룬pageEncoding="UTF-8"¡¢contentType="text/html;charset=UTF-8"¡¢request.setCharacterEncoding("UTF-8")ºÍresponse.setCharacterEncoding("UTF-8")£¬ÆäÖÐÇ°Á½¸öÖ»ÄÜÓÃÓÚJSPÖУ¬¶øºóÁ½¸ö¿ÉÒÔÓÃÓÚJSPºÍServletÖС£
1¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ