jspÎļþµ½µ×Òª²»Òª¼ÓNo-cache - Java / Web ¿ª·¢
ÓÃStruts2+Spring+Hibernate×öµÄÒ»¸öwebµÄERPСÏîÄ¿£¬×ܲ¿Ò»Ì¨·þÎñÆ÷£¨Êý¾Ý¿âÓëWeb·þÎñÆ÷ÔÚͬһ»ú×ÓÉÏ£©Êǵ¥¶À²¦ºÅÉÏÍøµÄ£¬Óë·Ö¹«Ë¾Ã»ÓÐÓþÖÓòÍøÏߣ¬Ó²¼þÌ«¹óÁË£¬ÆäËû¼¸¸öÊ¡Êзֹ«Ë¾¶¼À´·ÃÎÊÕâÒ»·þÎñÆ÷£¬¸Ð¾õºǫ́´úÂëµÄЧÂÊ»¹¿ÉÒÔ£¬°üÀ¨Êý¾Ý¿âµÄÖ´ÐÐЧÂÊ¡£ÏÖÔÚ·¢ÏÖ·Ö¹«Ë¾·ÃÎÊʱºÜÂý£¬Ã¿´Îн¨jspÒ³Ãæʱ¶¼ÊÇĬÈϵģ¬head²¿·Ö¶¼»áÓУº<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">¡£ÓÐЩ½çÃæÓ¦ÓÃÁËStruts2µÄһЩ±êÇ©»á×Ô¶¯¼ÓÔغܶàjs¼°CSS¡£ÏñStruts2µÄÈÕÆڿؼþdatetimepicker£¬»á¼ÓÔØdojo.js,¾ÍÕâÒ»¸öÎļþ¾Í258.45KB£¬Èç¹ûÿ¸öÒ³ÃæÍ·²¿¶¼ÓÐno-cacheµÄ»°£¬ÊDz»ÊÇÿ´Î½øÈëÓÐÈÕÆڿؼþµÄµØ·½¶¼»áÖØдӷþÎñÆ÷¶ËÏÂÔØÕâ¶Îjs?±¾À´´ø¿í¾Í²»ÊǷdz£´ó£¬ÄÇÒªÊÇûһ¸öjspÒ³Ã涼ҪÖØмÓÔØËüÃǵÄjsËûCSSµÄ»°£¬ÄÇÕæÊÇÌ«ÀË·ÑÁË£¬²»ÒªËµÃ¿´Î¼ÓÔض¯Ì¬Êý¾ÝÁË£¬¿Ï¶¨»áºÜÂýµÄ£¬µ«Èç¹ûÍ·²¿Ã»ÓÐno-cacheµÄ»°£¬Ã¿´Î²éѯ¡¢Ð޸ĵȣ¬»á²»»áÓоÉÊý¾ÝÓ°Ï죿
¸Ð¾õ¼Ó²»¼Óû¶à´óÓ°Ïì
ÍêÈ«²»ÐèÒª¼Ó
ÍøÉϾ³£Ëµ¼ÓÕâ¸öÄܽâ¾öʲôÎÊÌâ
ÕÒµ½ÎÊÌâ²¢½â¾öÁË
û·¢ÏÖÕâ¸öÓÐʲôÓÃ
ÏñÄÇЩ¶ÀÁ¢³é³öÀ´µÄÄÇЩjsºÍcss»¹ÊÇÿ´Î·ÃÎÊÒ»¸öÒ³Ã涼ȥ·þÎñÆ÷ÖØÐÂÏÂÔØÂð£¿ÊµÔÚû±ØÒª°¡¡£
¾ÍÊÇÔÚhead²¿·ÖµÄÄÇЩÒýÓÃjsÎļþ¼°CSSµÄÎļþ£¬Èç¹ûÓÐno-cache»òûÓÐno-cache,ÕâЩÎļþÿ´Î¶¼»¹ÒªÖØдӷþÎñÆ÷ÉÏ
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔʾһЩÌض¨±íÏÖÐÎʽÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔÀíÊÇʲôÄØ
È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË
ÎҲºͱàÒëÔÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......
insert into [ScholarshipManagement].[dbo].[department] ([department],[specialization] ,[grade]) output inserted.departmentID values(? ,? ,? )
ÇëÎÊ´ó¸çÃÇÕâ¸ösql Óï¾äÓ¦¸ÃÓÃJavaÀïµÄÄǸöÊý¾Ý¿â²Ù×÷·½·¨£¿ ......
id name datetime
1 a 2010-05-13 10:15:00
2 b 2010-05-14 09:10:00
3 d 2010-05-14 10:10:00
ÈçºÎ½«¾àÀëÄ¿Ç°×î½üµÄÄǸö¼Ç¼µÄname ¸üÐÂΪ¡°x¡±ÄØ
лл¿© °¡ ºÇºÇ
update table_n ......