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

jsp Ò³Ãæ³öÏÖÂÒÂë

´Ó html Ò³Ã渴ÖƵ½ jsp Ò³Ãæ³öÏÖÂÒÂ룺
   
       ½« html µÄ <?xml version="1.0" encoding="UTF-8"?> ¸ÄΪ jsp µÄ
    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> ¼´¿É½â¾öÎÊÌâ¡£
  


Ïà¹ØÎĵµ£º

jspÖ®session

session¾ÍÊÇÒ»¸öÈ«¾Ö±äÁ¿£¬ÊÇä¯ÀÀÆ÷Ïß³ÌÔÚ·þÎñÆ÷¶ËµÄ´úÀí¡£web·þÎñ³ÌÐòÖ»Òª´ò¿ª£¬session¾Í»á´æÔÚ£¬µ±ÄãµÚÒ»´Î·ÃÎÊʱ£¬session»á×Ô¶¯ÎªÄã·ÖÅäÒ»¸ösession ID£¬ËùÒÔsessionΪн¨Á¢µÄ£¬ËùÒÔsession.isNew()Ϊtrue¡£µ±ÄãË¢ÐÂÒ³Ãæʱ£¬Õâ¸ösession IDÒ»Ö±´æÔÚ(session.getId()²»±ä)£¬²»»áÏûʧ£¬ËùÒÔsession.isNew()Ϊfalse¡£³ý· ......

´«ÖDz¥¿Í 2010 1 6 ¾Å¡¢JSP(1)_JSP¼¼Êõ


       JSP£¨Java Server Pages£©ÊÇÒ»ÖÖ¶¯Ì¬web×ÊÔ´µÄ¿ª·¢¼¼Êõ£¬servlet¼¼ÊõÄÜÍê³ÉµÄËùÓй¦ÄÜ£¬Ê¹ÓÃJSP¼¼ÊõͬÑùÒ²¿ÉÒÔÍê³É¡£µ«ÔÚ³¤ÆÚµÄÈí¼þʵ¼ùÖУ¬¸ù¾Ýservlet¼¼ÊõºÍJSP¼¼Êõ¸÷×ÔµÄÌص㣬ÈËÃÇÖð½¥°Ñservlet×÷ΪwebÓ¦ÓÃÖеĿØÖÆÆ÷×é¼þÀ´Ê¹Ó㬶ø°ÑJSP¼¼Êõ×÷ΪÊý¾ÝÏÔʾģ°åÀ´Ê¹Óá£
Ò»¡¢JSP ......

JSPµ÷ÓÃOCX¿Ø¼þ

ÐèÒªÔÚÒ³ÃæÖÐǶÈë²¥·ÅÆ÷£¬À´²¥·Å¼ÒôÎļþ£¬Â¼ÒôÎļþʱ´ÓFTP·þÎñÆ÷Éϵõ½£¬¹«Ë¾Ð´Á˸öocx¿Ø¼þ£¬¿ÉÒÔ´ÓftpÉÏÏÂÔز¢ÇÒ¿ÉÒÔ½øÐиñʽµÄת»»----תΪwav¸ñʽ¡£ÔÚ¾ßÌ忪·¢ÖУ¬³öÏÖµÄÎÊÌâÊÇ£¬µ÷ÓøÃocx¿Ø¼þ²»³É¹¦£¬Ô­Òò¿ÉÄÜÊÇ£º
1.   ocx¿Ø¼þµ÷Óõķ½·¨²ÎÊýÓÐÎ󣬵¼Ö·½·¨µ÷Óò»³É¹¦£»
2.   ±¾µØ×¢²áocx¿Ø¼þ ......

JSPÒ³ÃæÖÐÎÞ·¨ÏÔʾCSSÖеı³¾°Í¼Æ¬

jspÒ³Ãæµ÷Óà <link type="text/css" rel="stylesheet" href="css/style.css"/>Ñùʽ±í
ÆäËûÑùʽ¶¼¿ÉÒÔÔÙÒ³ÃæÕý³£ÏÔʾ
.button-qingchu{background:url(images/qingchu.jpg); width:70px; height:30px; border:0px;} ÏñÕâÑùµÄ±³¾°Í¼Æ¬Ñùʽ¾ÍÏÔʾ²»³öͼƬÊÇʲôÎÊÌ⣡ Myeclipse 6.5
ÔÚhtmlÖж¼¿ÉÒÔÏÔʾ ÔÚjspÖÐÏÔʾ ......

jsp Ò³ÃæÇ建´æ


<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ