jsp½ûÖ¹Ò³Ã滺´æ
1.½ûÖ¹¿Í»§¶Ë»º´æÒªÔÚ<head>ÖмÓÈëÀàËÆÈçÏÂÄÚÈÝ£º
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
2.ÔÚ·þÎñÆ÷µÄ¶¯Ì¬ÍøÒ³ÖнûÖ¹»º´æ£¬Òª¼ÓÈëÀàËÆÈçϽű¾
jspÖÐ:
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
3.Ç°Ãæ×öÏîÄ¿Óöµ½AJAX£¬Ò³ÃæÊý¾ÝÎÞ·¨ÊµÊ±Ë¢Ð£¬¾ÍÊÇÒòΪҳÃ滺´æµÄÔÒò£¬ÉÏÃæ·½·¨ÎÞ·¨½â¾ö£¬ÖÕÓÚÕÒµ½ÏÂÃæµÄ·½·¨£º
var url = "/XXX.action?" + Math.round(Math.random());
TRXmlHttp.open("GET", url, true);
ÔÚ¹¹ÔìurlµÄʱºò¼ÓÒ»¸ö²ÎÊý£¨Ëæ»úÊý£©£¬ÕâÑù¾Í¿ÉÒÔÁË¡£
Ïà¹ØÎĵµ£º
jspÎļþÉÏ´«ºÍÏÂÔØ
package net.jspcn.tool;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
*
* Title: ÎļþÉÏ´«Àà
* Description: ¼ÈÄܶÔÎļþ½øÐÐÉÏ´«,ÓÖÄÜÈ¡µÃÊäÈë¿òµÄÖµ,×î¶à¿ÉͬʱÉÏ´«255¸öÎļþ
* Copyright: Copyright (c) 2002
* Company: Tekson
* ......
404´íÎóÊÇʲôʱºò²úÉúµÄÄØ£¿µ±ÎÒÃÇͨ¹ýä¯ÀÀÆ÷ÇëÇó·þÎñÆ÷ÉϵÄij¸ö×ÊÔ´µÄʱºò£¬¿ÉÄÜÊÇJSP£¬Ò²¿ÉÄÜÊÇServlet£¬Èç¹ûÒª·ÃÎʵÄ×ÊÔ´²»´æÔÚ£¬¾Í»á²úÉú404´íÎó£¬404´íÎó¿ÉÄÜÊÇÓ¦Óñ¾ÉíµÄÎÊÌ⣬ÀýÈçûÓÐÕý³£²¿Êð¡¢Ãû×Öд´íÁË£¬Ò²¿ÉÄÜÊÇÎļþµÄÎÊÌ⣬JSPÎļþ²»´æÔÚ¡¢Ãû×Ö´íÎ󣬻òÕßServleûÓÐÅäÖá£
¸ù¾ÝÕâЩÇé¿ö£¬404´íÎóµÄ½â¾ ......
//ת×Ôhttp://blog.csdn.net/zqhf8/archive/2007/07/09/1683938.aspx
1¡£ÔÀí¼ò½é
dtreeÊÇÒ»¸öÃâ·ÑµÄjavascript½Å±¾£¬Ö»Ð趨ÒåÓÐÏ޵ļ¸¸ö²ÎÊý£¬¾Í¿ÉÒÔ×ö³öƯÁÁµÄÊ÷ÐͲ˵¥¡£ÏÂÔØĿ¼£ºhttp://www.destroydrop.com/javascripts/tree/
ÒÔÏÂÊÇdtreeµÄÓ÷¨Ê¾Àý£º
1£©³õʼ»¯²Ëµ¥
<script t ......
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Ò³ÃæÖеÄ<%@ 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
ÔÚÒ³Ã濪ʼÊä³öÊý¾ ......