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

ÍøÕ¾Éè¼ÆÖÐJSPÓëASPµÄ±È½Ï

×ܵÄÀ´½²£¬JavaSever PagesTM£¨JSP£©ºÍ ΢ÈíµÄActive Sever Pages£¨ASP£©ÔÚ¼¼Êõ·½ÃæÓÐÐí¶àÏàËÆÖ®´¦¡£Á½Õ߶¼ÊÇΪ»ùÓÚWEBÓ¦ÓÃʵÏÖ¶¯Ì¬½»»¥ÍøÒ³ÖÆ×÷ÌṩµÄ¼¼Êõ»·¾³Ö§³Ö¡£Í¬µÈ³Ì¶ÈÉÏÀ´½²£¬Á½Õ߶¼Äܹ»Îª³ÌÐò¿ª·¢ÈËÔ±ÌṩʵÏÖÓ¦ÓóÌÐòµÄ±àÖÆÓë×Ô´ø×é¼þÉè¼ÆÍøÒ³´ÓÂß¼­ÉÏ·ÖÀëµÄ¼¼Êõ¡£¶øÇÒÁ½Õ߶¼Äܹ»Ìæ´úCGIʹÍøÕ¾½¨ÉèÓë·¢Õ¹±äµÄ½ÏΪ¼òµ¥Óë¿ì½Ý¡£ ¡¡¡¡
¡¡¡¡¾¡¹ÜJavaSever Pages ¼¼ÊõºÍ΢ÈíµÄActive Sever PagesÔÚÐí¶à·½Ã涼ÓÐÏàËƵģ¬µ«ÈÔÈ»´æÔںܶ಻֮ͬ´¦£¬ÆäÖÐ×î±¾ÖÊÉϵÄÇø±ðÔÚÓÚ£ºÁ½ÕßÊÇÀ´Ô´ÓÚ²»Í¬µÄ¼¼Êõ¹æ·¶×éÖ¯£¬ÆäʵÏֵĻù´¡£ºWEB·þÎñÆ÷ƽ̨ҪÇó²»Ïàͬ¡£ ¡¡¡¡
¡¡¡¡Ò»¡¢JSP ¼¼Êõ£º¿ª·ÅµÄ¼¼Êõ ¡¡¡¡
¡¡¡¡JSPºÍASP¼¼ÊõÃ÷ÏԵIJ»Í¬µã£º¿ª·¢ÈËÔ±ÔÚ¶ÔÁ½Õ߸÷×ÔÈí¼þÌåϵÉè¼ÆµÄÉîÈëÁ˽âµÄ·½Ê½²»Í¬¡£JSP¼¼Êõ»ùÓÚƽ̨ºÍ·þÎñÆ÷µÄ»¥Ïà¶ÀÁ¢£¬ÊäÈëÖ§³ÖÀ´×Թ㷺µÄ£¬×¨Ãŵģ¬¸÷ÖÖ¹¤¾ß°ü£¬·þÎñÆ÷µÄ×é¼þºÍÊý¾Ý¿â²úÆ·¿ª·¢ÉÌËùÌṩ¡£Ïà±È֮ϣ¬ASP¼¼ÊõÖ÷ÒªÒÀÀµÎ¢ÈíµÄ¼¼ÊõÖ§³Ö¡£ ¡¡¡¡
¡¡¡¡1¡¢Æ½Ì¨ºÍ·þÎñÆ÷µÄ¶ÀÁ¢ÐÔ ¡¡¡¡
¡¡¡¡JSP¼¼ÊõÒÀ¸½ÓÚÒ»´ÎдÈ룬֮ºó£¬¿ÉÒÔÔËÐÐÔÚÈκξßÓзûºÏJavaTMÓï·¨½á¹¹µÄ»·¾³¡£È¡¶ø´úÖ®¹ýÈ¥ÒÀ¸½ÓÚµ¥Ò»Æ½Ì¨»ò¿ª·¢ÉÌ£¬JSP¼¼ÊõÄܹ»ÔËÐÐÔÚÈκÎWEB·þÎñÆ÷Éϲ¢ÇÒÖ§³ÖÀ´×Ô¶à¼Ò¿ª·¢ÉÌÌṩµÄ¸÷ÖÖ¸÷Ñù¹¤¾ß°ü¡£ ¡¡¡¡
¡¡¡¡ÓÉÓÚASPÊÇ»ùÓÚActivex¿Ø¼þ¼¼ÊõÌṩ¿Í»§¶ËºÍ·þÎñÆ÷¶ËµÄ¿ª·¢×é¼þ£¬Òò´ËASP¼¼Êõ»ù±¾ÉÏÊǾÖÏÞÓÚ΢ÈíµÄ²Ù×÷ϵͳƽ̨֮ÉÏ¡£ASPÖ÷Òª¹¤×÷»·¾³ÊÇ΢ÈíµÄIISÓ¦ÓóÌÐò½á¹¹£¬ÓÖÒòActivex¶ÔÏó¾ßÓÐƽ̨ÌØÐÔ£¬ËùÒÔASP¼¼Êõ²»ÄܺÜÈÝÒ×µØʵÏÖÔÚ¿çƽ̨µÄWEB·þÎñÆ÷µÄ¹¤×÷¡£¾¡¹ÜASP¼¼Êõͨ¹ýµÚÈý·½ÌṩµÄ²úÆ·Äܹ»µÃµ½×é¼þºÍ·þÎñʵÏÖ¿çƽ̨µÄÓ¦ÓóÌÐò£¬µ«ÊÇActivex¶ÔÏó±ØÐëÊÂÏÈ·ÅÖÃÓÚËùÑ¡ÔñµÄƽ̨ÖС£ ¡¡¡¡
¡¡¡¡2¡¢¿ª·ÅµÄ¿ª·¢¹ý³Ì£¬¿ª·ÅµÄÔ­´úÂë ¡¡¡¡
¡¡¡¡SUNÓ¦ÓÃJAVAÉçÍÅÐÔ¹ý³Ì¿ª·¢JSP¼¼Êõ¡£×Ô´Ó1995Ä꣬SUNÒѾ­ÓÃÕâÖÖ¿ª·Å¹ý³Ì·½·¨Í¬¹ú¼ÊJAVA×éÖ¯ºÏ×÷¿ª·¢ºÍÐÞ¸ÄÁËJAVA¼¼ÊõÓë¹æ·¶¡£Õë¶ÔJSPµÄ²úÆ·£¬SUNÊÚȨÁ˹¤¾ßÌṩÉÌ£¨ÈçMacromedia£©,½áÃ˹«Ë¾£¨ÈçApache,Netscape£©,×îÖÕÓû§£¬Ð­×÷É̼°ÆäËû¡£×î½ü£¬SUN½«×îа汾µÄJSPºÍJavaTM Servlet£¨JSP 1.1,JAVA SERVLET 2.2£©µÄÔ­´úÂë·¢·Å¸øApache£¬ÒÔÇóJSPÓëApache½ôÃܵÄÏ໥·¢Õ¹¡£Apache£¬SUNºÍÐí¶àÆäËûµÄ¹«Ë¾¼°¸öÈ˹«¿ª³ÉÁ¢Ò»¸ö½¡×³µÄ×Éѯ»ú¹¹ÒÔ±ãÈκι«Ë¾ºÍ¸öÈ˶¼ÄÜÃâ·ÑÈ¡µÃÐÅÏ¢¡£ ¡¡
¡¡¡¡JSPÓ¦ÓóÌÐò½çÃ棨API£©ºÁÎÞÒÉÎÊÒѾ­È¡µÃ³É¹¦£¬²¢½«ËæJAVA×éÖ¯²»¶Ï¿ª·ÅÀ©´ó¼ÌÐøÍêÉÆ¡£Ïà·´£¬ASP¼¼Êõ½öÒÀ¿¿Î¢Èí±¾Éíµ


Ïà¹ØÎĵµ£º

jspµ÷ÓÃjavabeanʵÀý

goodsbean.java
package sale;
public class goodsbean{
    String Product;
    double Price;
    public goodsbean (){
    this.Product = "box";
    this.Price = 5.0;
    }
public void setProduct (String ......

Eclipse JSP ±êÇ©×Ô¶¯Ìáʾ


ÎÒÃÇÔÚдһ¸öjspÒ³Ã棬ҪʹÓÃstruts2±êÇ©£¬ÎÒÃÇÒªÊ×ÏÈÒªÔÚjspÒ³ÃæÍ·²¿·Å£º<%@ taglib prefix="s" uri="/struts-tags" %>£¬µ±È»Òª·Åstruts2µÄjar°üÁË¡£ÎÒÃÇ¿ÉÒÔË¢ÐÂһϴËÒ³Ã棬±ÈÈç°ÑÕâ¸öÒ³Ãæ±£´æºóÔÙ´ò¿ª£¬Ä¿µÄÊÇÔÚдstruts2±êǩʱ£¬ÓÐstruts2±êÇ©×Ô¶¯Ìáʾ¹¦ÄÜ¡£
......

ASPÍøÕ¾Êý¾Ý¿â±»¹ÒľÂíÔõô°ì

˵ÔÚÇ°ÃæµÄ»°£º
Òª·ÀÊý¾Ý¿âľÂí£¬Æäʵ×î¼òµ¥²»¹ý£¬±¾ÈËÈÏΪ£¬ÍøÉÏËùνµÄ×¢Èë·½·¨£¬¶¼ÊÇЩС¶ù¿Æ¡£Ö»ÒªÄã²»ÈÃÊý¾Ý¿âÔËÐУ¬Ëü×¢ÈëÁËASPľÂíÓкÎÓã¿£¡Ö»ÒªÄãÊä³öʱÓÐÑϸñµÄ¹ýÂË£¬Ëü×¢ÈëÁËJS´úÂëÓкÎÓã¿£¡
¾ßÌå·½·¨ÈçÏ£º
Ò»¡¢°ÑÊý¾Ý¿â¸ÄΪASP¸ñʽ£¬²¢¼ÓÈëÒ»¸ö±í£¬ÀïÃ潨¸ö×ֶΣ¬¼ÓÈëһЩIISϵͳ¼¶µÄ´íÎó´úÂë»òOleÊý¾Ý£¬¼´ ......

JSP/J2EE ÔÚÆÕͨÀàÖлñÈ¡ÏîÄ¿ÔÚtomcatÀïÃæµÄÎïÀí·¾¶

private String projectName="sz_pro";        //  ÄãÏîÄ¿µÄÃû³Æ
//»ñÈ¡µ±Ç°ÏîÄ¿µÄ¾ø¶Ô·¾¶
  public String getPorjectPath(){
   String nowpath;             //µ±Ç°tomcatµÄbi ......

ÒýÓà JDK 6u12+Tomcat6.0+JSP¾­µäÅäÖÃ(Íêȫ׼ȷÎÞÎó£©

µÚÒ»²½£ºJDKÓëTomcatµÈµÄÏÂÔØÓëÅäÖÃ
    ×îеÄJDKΪ6.0£¨jdk-6u12-windows-i586-p.exe£©£¬tomcatΪ6.0(apache-tomcat-6.0.18.exe)
¿ª·¢»·¾³£º
JDK: jdk-6u12-windows-i586-p.exe
ÏÂÔصØÖ·:http://java.sun.com/javase/downloads/index.jsp
Tomcat:apache-tomcat-6.0.18.exe
ÏÂÔصØÖ·:http://tomcat.a ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ