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

JSPÖÐÎļþÏÂÔØ

<%--   
 
ÓÐЩÅóÓÑѯÎÊʹÓà JSP Smart ÏÂÔØÎļþµÄʱºò±¨´í, ÕâÀï¸ø³öÒ»¸ö²âÊÔ¹ýµÄ²»  
 
ÐèҪʹÓà JSP Smart µÄ JSP Ò³ÃæÖнøÐÐÎļþÏÂÔصĴúÂë(¸Ä Servlet »òÕß  
 
JavaBean µÄ»°×Ô¼º¸Ä°É), Ö§³ÖÖÐÎĸ½¼þÃû(×öÁËתÄÚÂë´¦Àí). ÊÂʵÉÏÖ»ÒªÏò  
 
out Êä³ö×ֽھͱ»ÈÏΪÊǸ½¼þÄÚÈÝ, ²»Ò»¶¨·ÇÒª´ÓÎļþ¶ÁȡԭʼÊý¾Ý, ´ÓÊý¾Ý  
 
¿âÖжÁÈ¡Ò²¿ÉÒÔµÄ.  
 
²âÊÔ½á¹û: Tomcat 5.0, 5.5, Resin 3.0.18 , Weblogic 8.1, 9.2 ²âÊÔͨ¹ý, ÎÞÒì³£²úÉú   
 
--%>   
 
<% @ page contentType = " text/html; charset=GBK "  pageEncoding = " GBK "   %>   
 
<% @ page  import = " java.io.*, java.util.*, java.text.* "   %>   
 
 
 
<%!   
 
     /**  
 
     *  If returns true, then should return a 304 (HTTP_NOT_MODIFIED) 
 
      */   
 
     public   static   boolean  checkFor304( HttpServletRequest req,  
 
                                       File file )  
 
    {  
 
         //   
 
         //   We'll do some handling for CONDITIONAL GET (and return a 304)  
 
         //   If the client has set the following headers, do not try for a 304.  
 
         //&nbs


Ïà¹ØÎĵµ£º

ÈçºÎÏòÒ»¸öjsp´«µÝÁ½¸öÒÔÉϵIJÎÊý

ÓÐÁ½ÖÖ´«²Î·½Ê½
Ò»¡¢get·½Ê½£º
        ÕâÖÖ·½Ê½½«²ÎÊýдÔÚurlÖУ¬¾ÙÀýÀ´Ëµ£¬Èç¹ûÄ¿±ê´«²ÎÒ³ÃæÊÇtarget.jsp,ÄÇôÔÚurlÀï¿ÉÒÔÕâôд£º
        http://..../target.jsp? <Param1> = <value1> & <Param2> = <value2> &...
    &n ......

JSPдÎļþ´úÂë

<%@ page contentType="text/html; charset=gbk" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w ......

jspÄ£°æ¼ò½é

JSPÄ£°åÓ¦ÓÃÖ¸ÄÏ
Window
¹¤¾ß°üÌṩÁËÒ»ÖÖµäÐ͵IJ¼¾Ö»úÖÆ£¬±ÈÈç˵ÔÚÒ»¸öÈÝÆ÷ÖÐÈ·¶¨²¿¼þÔªËصÄλÖá£ÔÚAWT ºÍ Swing¶¼Óв¼¾Ö¹ÜÀíÆ÷£¬¶øÔÚVisualWorks
SmalltalkÖÐÓÐwrapper¡£±¾ÎĽ«½éÉÜÒ»ÖÖJSPÄ£°å»úÖÆ£¬ËüÔÊÐí²¼¾Ö±»·â×°ºÍÖØÐÂÀûÓá£JSPÄ£°å×îС»¯Á˲¼¾Ö¸Ä±äËùÔì³ÉµÄÓ°Ï죬ÕâÀïÎÒÃÇ
½«¹ÄÀø´ó¼Ò²ÉÓ÷â×°Ä£¿é»¯Éè¼Æ¡£
¾ ......

JSPÁ¬½ÓÊý¾Ý¿âµÄ×ܽá

ÒòΪÊǸú×ÅÊÓƵѧϰµÄ£¬ÓкܶàÓõĶ«Î÷²»Ò»Ñù£¬µ«ÊÇ»¹ÊÇÂýÂýµÄÃþË÷³öÀ´À²£¡
1.Microsoft JDBC Driver µÄÏÂÔØ°²×°
 Ö»ÒªÔÚÍøÉÏÕÒµ½×ÊÔ´Ò»²½²½À´¾Í¿ÉÒÔÁË¡£
2.ÅäÖû·¾³±äÁ¿
  ÎÒÓõÄÊÇtomcat6.0Ê×ÏÈÅäµÄÊÇ
classpathºÍpath£¬ÕâЩ¶¼ÊÇÔÚÅäjdkµÄʱºò¾ÍÅä¹ýÁË£¬ËùÒԾͲ»Ïêϸ˵Ã÷ÁË£¬Ö»Òª½«libºÍbinÎļþ¼ÓÈëµ½Ïà¹Ø ......

ÓÃJspÀ´ÊµÏÖÎļþÏÂÔع¦Äܵļ¸ÖÖ·½Ê½

 
£±.×îÖ±½Ó×î¼òµ¥µÄ£¬·½Ê½ÊÇ°ÑÎļþµØÖ·Ö±½Ó·Åµ½htmlÒ³ÃæµÄÒ»¸öÁ´½ÓÖС£ÕâÑù×öµÄȱµãÊÇ°ÑÎļþÔÚ·þÎñÆ÷ÉϵÄ·¾¶±©Â¶ÁË£¬²¢ÇÒ»¹ÎÞ·¨¶ÔÎļþÏÂÔؽøÐÐÆäËüµÄ¿ØÖÆ£¨ÈçȨÏÞ£©¡£Õâ¸ö¾Í²»Ð´Ê¾ÀýÁË¡£
 
£².ÔÚ·þÎñÆ÷¶Ë°ÑÎļþת»»³ÉÊä³öÁ÷£¬Ð´Èëµ½response£¬ÒÔresponse°ÑÎļþ´øµ½ä¯ÀÀÆ÷£¬ÓÉä¯ÀÀÆ÷À´ÌáʾÓû§ÊÇ·ñÔ¸Òâ±£´æÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ