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

·ÖÒ³À¸ jsp ´úÂë

************************************************************************
·ÖÒ³µÄ´úÂ룺
--------------CSSÑùʽ--------------
<style type="text/css">
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
body table tr td table tr {
background-color: #FFF;
}
.pages {
padding-bottom: 2px;
padding-left: 0px;
padding-right: 0px;
padding-top: 2px;
float:right;
}
.pages a {
border-bottom: 1px solid;
border-left: 1px solid;
padding-bottom: 0px;
line-height: 20px;
padding-left: 6px;
padding-right: 6px;
float: left;
height: 20px;
overflow: hidden;
border-top: 1px solid;
margin-right: 2px;
border-right: 1px solid;
padding-top: 0px;
border-bottom-color: #e6e7e1;
background-color: #fff;
border-top-color: #e6e7e1;
color: #09c;
border-right-color: #e6e7e1;
border-left-color: #e6e7e1
}
.pages a:hover {
border-bottom-color: #09c;
border-top-color: #09c;
border-right-color: #09c;
border-left-color: #09c
}
.pages a:visited{
text-decoration:none;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.topindex{
padding-top:10px;
padding-bottom:10px;
text-align:center;
}
.topindex span{
margin-left:10px;
margin-right:10px;
}
.topindex span a:link{
color:#810081;
}
</style>
--------------¼òµ¥·ÖÒ³--------------
<div class="pages">

<a href="showposttable.jsp?currentPage=1" mce_href="showposttable.jsp?currentPage=1">Ê×Ò³</a>

<%if(currentPage>1){%>
<a href="showposttable.jsp?currentPage=<%=currentPage-1%>" >ÉÏÒ»Ò³</a>
<%}%>

<a href="showposttable.jsp?currentPage=<%=currentPage%>" style="


Ïà¹ØÎĵµ£º

jsp,servlet,strutsµÈ³öÏÖÂÒÂëµÄ½â¾ö°ì·¨¡£

1.Ê×ÏÈÒª±£Ö¤jspÒ³ÃæµÄ±àÂë¸ñʽ¡¢Êý¾Ý¿â±àÂë¸ñʽ¡¢javaÎļþ±£´æ¸ñʽ¡¢·þÎñÆ÷server.xmlÖеÄURIEncoding±àÂë¸ñʽ±£³ÖÒ»ÖÂ
2 ÊÖ¶¯Ð´Ò»¸ö¹ýÂËÆ÷£¬²¢ÇÒÔÚweb.xmlÎļþÖнøÐÐÅäÖá£
¾ßÌå´úÂë²Î¿¼ÈçÏ£¨µ÷ÊÔͨ¹ý£©£º
package cn.com.model2.util;
import java.io.IOException;
import javax.servlet.Filter;
import javax.se ......

ÔõÑù²é¿´Jsp±àÒëºóÉú³ÉµÄJavaÎļþ

      ¿ÉÄÜ´ó¶àÊýJsp¿ª·¢Ô±ÔÚдÍê³ÌÐò²âÊÔͨ¹ýºó£¬²»Ì«»á¹Ø×¢JspÉú³ÉµÄJavaÎļþ£¬Æäʵ£¬Í¨¹ýJava´úÂ룬¸üÄÜÌåÏÖ³ÌÐò´úÂëµÄÕæÕýº¬Ò壬¶Ô½øÒ»²½Ñо¿³ÌÐò´úÂëµÄºǫ́ÔËÐÐÇé¿öÊǷdz£ÓаïÖúµÄ¡£ÀýÈ磬ÓÃJsp±àд´úÂëʱ£¬ÓÐʱºòÓÃ<%!   %>£¬ÓÐʱºòÓÃ<%   %>£¬¼Ó²»¼Ó¸Ð̾º ......

½«jspÍøÒ³Êý¾ÝÊä³öΪExcel»òWordÎļþ

½«Ò»¸öJSPÒ³ÃæÖеÄ<%@ page contentType="text/html; charset=GBK" language="java" %>Ì滻Ϊ
<%@ page contentType="application/vnd.ms-Excel;charset=GBK" language="java"%> //Excel
»ò
<%@ page contentType="application/vnd.ms-word;charset=GBK" language="java"%> //Word
ÔÚÒ³Ã濪ʼÊä³öÊý¾ ......

ÓÃJSPÏÂÔØwordÎļþ

<%@page import="java.util.*"%>
<%@page import="java.io.*"%>
<%@page import="java.net.*"%>
<%
String filename = "";
if (request.getParameter("file") != null) {
filename = request.getParameter("file");
}
response.setContentType("application/msword");
response.setHeader("C ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ