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

jsp´æÈëºÍ¶ÁÈ¡»Ø³µ»»Ðзû

ÔÚjspÒ³ÃæÖн«»Ø³µ»»Ðзû´æÈë±íÖз½·¨
1.ÔÚÒ»¸ötextareaÖÐÊäÈëÒ»¶ÎÎÄ×Ö£¬Óл»ÐÐʱ£¬½«»»ÐзûÒ»Æð²åÈëÊý¾Ý¿âÖÐ
ʹÓ÷½·¨ÈçÏ£º
public   static   String   TextToHtml(String   sourcestr)      
  {      
  int   strlen;      
  String   restring="",   destr   =   "";      
  strlen   =   sourcestr.length();      
  for           (int   i=0;   i<strlen;           i++)      
  {      
  char   ch=sourcestr.charAt(i);      
  switch   (ch)      
  {      
  case   '<':      
  destr   =   "&lt;";      
  break;      
  case   '>':      
  destr   =   "&gt;";      
  break;      
  case   '\"':      
  destr   =   "&quot;";      
  break;      
  case   '&':      
  destr   =   "&amp;";      
  break;      
  case   13:      
  destr &nbs


Ïà¹ØÎĵµ£º

jsp·ÖÒ³±êÇ©

Ò»¼ò½é£¬
Pager-taglib£¬Ö§³Ö¶àÖÖ·ç¸ñµÄ·ÖÒ³ÏÔʾ¡£Êµ¼ÊÉÏËýÊÇÒ»¸öJsp±êÇ©¿â£¬ÎªÔÚJSPÉÏÏÔʾ·ÖÒ³ÐÅÏ¢¶øÉè¼ÆµÄÒ»Ì×±êÇ©£¬Í¨¹ýÕâЩ±êÇ©µÄ²»Í¬µÄ×éºÏ£¬»áÐγɶàÖÖ²»Ò»ÑùµÄ·ÖÒ³Ò³Ã棬·ç¸ñ¸÷Ò죬Ëý×Ô´øµÄDEMO¾ÍÓÐÆßÖÖ×óÓҵķÖÒ³·ç¸ñ£¬°üÀ¨GoogleµÄ·ÖÒ³·ç¸ñ¡£¶øÐèÒª¶©ÖÆ×ÔÒѵķç¸ñµÄ·ÖÒ³Ò³ÃæÒ²·Ç³£¼òµ¥¡£
·ÖÒ³·½Ê½ÓÐÁ½ÖÖ£º
Ò ......

html¡¢asp¡¢php¡¢jsp ½ûÖ¹»º´æµÄ·½·¨

HTML:
<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">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP£º
header("Expires: Mon, 26 Jul 1997 ......

ÓйØJSP/ServletµÄÖض¨Ïò¼¼Êõ

 
ÓйØJSP/ServletµÄÖض¨Ïò¼¼Êõ×ÛÊöÈçÏÂ
1.RequestDispatcher.forward()
    ÊÇÔÚ·þÎñÆ÷¶ËÆð×÷ÓÃ,µ±Ê¹ÓÃforward()ʱ,Servlet engine´«µÝHTTPÇëÇó´Óµ±Ç°µÄServlet or JSPµ½ÁíÍâÒ»¸öServlet,JSP »òÆÕͨHTMLÎļþ,Ò²¼´ÄãµÄformÌá½»ÖÁa.jsp,ÔÚa.jspÓõ½ÁËforward()Öض¨ÏòÖÁb.jsp,´ËʱformÌá½»µÄËùÓÐÐÅÏ¢ ......

jspµÄ¸Å¿ö



 
JSP³£ÓÃÎÊ´ð
ÊÕ²Ø



< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
......

jspÔËÐл·¾³µÄÅäÖÃ

      Õâ¶Îʱ¼äÔÚѧϰJSP£¬×ÜÌåÀ´Ëµ£¬JSPѧϰÆðÀ´¸Ð¾õ»¹²»´í£¬²»ÖªµÀÊDz»ÊÇÓÐÁËJAVAµÄ¹¦µ×£¬Ã»¸Õ¸Õ¿ªÊ¼Ñ§Ï°CÓïÑÔµÄʱºòÄÇô³ÔÁ¦¡£²»¹ÜÊÇҪѧϰJSP»¹ÊÇÆäËû±à³ÌÓïÑÔ£¬ÎÒÃǶ¼Ó¦¸ÃÄÜѧ»á×Ô¼ºÊìÁ·µÄ°²×°ºÍÅäÖÃÐèÒªÓõ½µÄ¿ª·¢Èí¼þ¡£ÓÐÁË¿ª·¢Èí¼þ¾Í»áÊ°빦±¶¡£Ð´´úÂëÒ²»á¸ü¿ì½ÝºÍ·½±ã£¬ÓÐЩ¹Ø¼ü´Ê»ò´íÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ