JSP所有程序,第一次都是比较慢的,但是以后就一次比一次快,我想也许不是页面本身的问题,你可以看看是不是样式表的问题,或是虚礼机的问题,还是你的内存的问题。

解决方案 »

  1.   

    <% 
    response.setHeader("Pragma","No-cache"); 
    response.setHeader("Cache-Control","no-cache"); 
    response.setDateHeader("Expires", 0); 
    %>
    不要呢
      

  2.   

    现在我改成下面形势,显示成乱码了
    哪位帮忙解释一下啊
    <% 
    response.setHeader("Pragma","No-cache"); 
    response.setHeader("Cache-Control","no-cache"); 
    response.setDateHeader("Expires", 0); 
    %>
    <%%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>XXX管理责任有限公司  </title>
    <style type="text/css">
    <!--
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    -->
    </style>
    <link href="../images/css.css" rel="stylesheet" type="text/css"></head></head>
    <body>
    <table width="996" height="45" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="300" height="45" align="center" valign="middle"><img src="../images/logo.gif" width="272" height="39"></td>
        <td width="696" height="45" align="right" valign="top"><img src="../images/index_top_bg.gif" width="484" height="34"></td>
      </tr>
    </table>
    <table width="996" height="30" border="0" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="10" height="30" background="../images/aboutus_top_bg_line.gif">&nbsp;</td>
        <td width="233"><img src="../images/aboutus_top_bigad_1.gif" width="233" height="30"></td>
        <td width="680" align="right" valign="top" background="../images/aboutus_top_bg_line.gif"><img src="../images/pro_email_tel.gif" width="353" height="18"></td>
        <td width="73" background="../images/aboutus_top_bg_line.gif">&nbsp;</td>
      </tr>
    </table>
    <table width="996" border="0" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="243" height="30" valign="top"><table width="243" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr> 
              <td width="10" height="45" valign="top" background="../images/pro_left_top.gif"></td>
              <td width="230" rowspan="3" valign="top"><table width="230" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="../images/aboutus_top_bigad_2.jpg" width="233" height="262"></td>
                  </tr>
                  <tr>
                    <td align="center"><jsp:include page="../common/quickLink.html" flush="true"/></td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr> 
              <td width="10" height="520" valign="bottom"><img src="../images/index_left_1.gif" width="7" height="489"></td>
            </tr>
        </table></td>
        <td width="754" valign="top"><table width="751" height="38" border="0" cellpadding="0" cellspacing="0">
            <tr> 
              <td width="110" height="38"><a href="../index.do" target="_parent"><img src="../images/pro_menu_1.gif" width="110" height="38" border="0"></a></td>
              <td width="112" height="38"><a href="../jiaoyi.do" target="_parent"><img src="../images/pro_menu_2.gif" width="112" height="38" border="0"></a></td>
              <td width="118" height="38"><a href="../product1.do" target="_parent"><img src="../images/pro_menu_3.gif" width="118" height="38" border="0"></a></td>
              <td width="107" height="38"><a href="../CxCommWeb.do?categoryID=79" target="_parent"><img src="../images/pro_menu_4.gif" width="107" height="38" border="0"></a></td>
              <td width="107" height="38"><a href="../sichang.do" target="_parent"><img src="../images/pro_menu_5.gif" width="107" height="38" border="0"></a></td>
              <td width="107" height="38"><a href="../aboutus/aboutus_1.jsp" target="_parent"><img src="../images/pro_menu_6.gif" width="107" height="38" border="0"></a></td>
              <td width="92" height="38"><img src="../images/pro_menu_bg.gif" width="92" height="38"></td>
            </tr>
            <tr> 
              <td width="110">&nbsp;</td>
              <td width="112">&nbsp;</td>
              <td width="439" colspan="4" align="right"><img src="../images/aboutus_menu.gif" width="353" height="41" border="0" usemap="#Map"></td>
              <td width="92">&nbsp;</td>
            </tr>
          </table>
          <table width="753" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td width="680" align="center" valign="top"><table width="660" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="left"><img src="../images/aboutus_main_1.gif" width="647" height="39"></td>
                </tr>
                <tr>
                  <td align="right"><table width="650" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="550" valign="top"><table width="550" border="0" cellspacing="5" cellpadding="0">
                        <tr>
                          <td class="css"><strong>  公 司 简 介</strong><br>                        <br> 
                             双季稻缩短距离嘉陵江 <br>
                            <br></td>
                        </tr>
                      </table></td>
                      <td width="100" align="right"><img src="../images/aboutus_main_2.gif" width="97" height="541"></td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
              <td width="73" valign="bottom"><img src="../images/index_right_1.gif" width="73" height="534"></td>
            </tr>
          </table></td>
      </tr>
    </table>
    <table width="996" height="27" border="0" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="7" background="../images/index_bottom_copybg_left.gif"></td>
        <td width="916" valign="middle" bgcolor="CCCCCC">&nbsp;&nbsp;<img src="../images/index_bottom_copy.gif" width="212" height="16"></td>
        <td width="73" valign="middle" bgcolor="CCCCCC"><img src="../images/index_bottom_copybg_right.gif" width="73" height="27"></td>
      </tr>
    </table>
    <table width="996" height="40" border="0" cellpadding="0" cellspacing="0">
      <tr> 
    <td height="40" bgcolor="E1E1E1" class="border-t-solid">&nbsp;</td>
        <td height="40" valign="middle" bgcolor="E1E1E1" class="border-t-solid">&nbsp;&nbsp;<img src="../images/index_bottom_2.gif" width="892" height="35"></td>
      </tr>
    </table>
    <map name="Map">
      <area shape="rect" coords="11,10,61,31" href="aboutus_1.jsp">
      <area shape="rect" coords="68,10,118,31" href="aboutus_2.jsp">
      <area shape="rect" coords="125,10,175,31" href="aboutus_3.jsp">
      <area shape="rect" coords="181,10,230,32" href="aboutus_4.jsp">
      <area shape="rect" coords="239,10,289,33" href="../CxCommWeb.do?categoryID=12">
      <area shape="rect" coords="296,11,347,32" href="aboutus_6.jsp">
    </map>
    </body>
    </html>
      

  3.   

    我刚开始用jsp时也是刷新几次才出来,后来发现跟程序没问题,就是慢!!
      

  4.   

    <%@ page contentType="text/html; charset=gb2312"%> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">加上这些就行了,问题是解决了,哪位给个解释先啊
    关于怎么加解码的语句,为什么别的页面没有这样的问题
      

  5.   

    强烈建议:买本电子工业出版社的sunone <jsp开发专家>。。
      

  6.   

    下个MSDN,好好研究一下,就可以了