Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Öж¯Ì¬INCLUDEÓ뾲̬INCLUDEµÄÇø±ð

ÎÒÃǶ¼ÖªµÀÔÚjspÖÐincludeÓÐÁ½ÖÖÐÎʽ,·Ö±ðÊÇ
    <%@ include file=" "%>
    <jsp:include page=" " flush="true"/>
    ǰÕßÊÇÖ¸ÁîÔªËØ¡¢ºóÕßÊÇÐÐÎªÔªËØ.
    ͨ³£µ±Ó¦ÓóÌÐòÖÐËùÓеÄÒ³ÃæµÄijЩ²¿·Ö(ÀýÈç±êÌâ¡¢Ò³½ÅºÍµ¼º½À¸)¶¼ÏàͬµÄʱºò,Î ......

Ö´ÐÐJSPºóÉú³ÉHTML¾²Ì¬Îļþ

import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.Servl ......

jspÖÐincludeµÄÁ½ÖÖÐÎʽ

jspÖÐincludeµÄÁ½ÖÖÐÎʽ:      1.<%@ include file=” ”%>
                                 &nbs ......

jspµ÷ÓÃjavabeanʵÀý

goodsbean.java
package sale;
public class goodsbean{
    String Product;
    double Price;
    public goodsbean (){
    this.Product = "box";
    this.Price = 5.0;
    }
public void setProduct (String ......

ÈçºÎÒ»¸öjspÒ³Ãæ´¦Àí¶à¸öform±íµ¥

Ê×ÏÈÊÇÌá½»Ò³Ãæ£ºÈý¸ö±íµ¥(form1,form2,form3)
         <form name="form1" method="post" action="checklogin.jsp" class="niceform">
            <input name="qx" type="hidden" value="3">
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ