JSPÊÇjava·þÎñÆ÷Ò³Ãæ¡£Tomcat ·þÎñÆ÷ÊÇÒ»¸öÃâ·ÑµÄ¿ª·ÅÔ´´úÂëµÄWeb Ó¦Ó÷þÎñÆ÷£¬ÊôÓÚÇáÁ¿¼¶Ó¦Ó÷þÎñÆ÷¡£tomcatÊÇjspºÍservletµÄÔËÐÐƽ̨¡£
1.JSPÈ«ÃûΪJava Server Pages£¬ÖÐÎÄÃû½Ðjava·þÎñÆ÷Ò³Ã棬Æä¸ù±¾ÊÇÒ»¸ö¼ò»¯µÄServletÉè¼Æ¡£ ËüÊÇÓÉSun Microsystems¹«Ë¾³«µ¼¡¢Ðí¶à¹«Ë¾²ÎÓëÒ»Æð½¨Á¢µÄÒ»ÖÖ¶¯Ì¬ÍøÒ³¼¼Êõ±ê×¼¡£ JSP¼¼ÊõÓеãÀàËÆASP¼¼Êõ£¬ËüÊÇÔÚ´«Í³µÄÍøÒ³HTML£¨±ê׼ͨÓñê¼ÇÓïÑÔµÄ×Ó¼¯£©Îļþ(*.htm,*.html)ÖвåÈëJava³ÌÐò¶Î(Scriptlet)ºÍJSP±ê¼Ç(tag)£¬´Ó¶øÐγÉJSPÎļþ£¬ºó׺ÃûΪ(*.jsp)¡£ ÓÃJSP¿ª·¢µÄWebÓ¦ÓÃÊÇ¿çƽ̨µÄ£¬¼ÈÄÜÔÚLinuxÏÂÔËÐУ¬Ò²ÄÜÔÚÆäËû²Ù×÷ϵͳÉÏÔËÐС£ 2.Tomcat ·þÎñÆ÷ÊÇÒ»¸öÃâ·ÑµÄ¿ª·ÅÔ´´úÂëµÄWeb Ó¦Ó÷þÎñÆ÷£¬ÊôÓÚÇáÁ¿¼¶Ó¦Ó÷þÎñÆ÷¡£ ÔÚÖÐСÐÍϵͳºÍ²¢·¢·ÃÎÊÓû§²»ÊǺܶàµÄ³¡ºÏϱ»ÆÕ±éʹÓã¬ÊÇ¿ª·¢ºÍµ÷ÊÔJSP ³ÌÐòµÄÊ×Ñ¡¡£ ¶ÔÓÚÒ»¸ö³õѧÕßÀ´Ëµ£¬¿ÉÒÔÕâÑùÈÏΪ£¬µ±ÔÚһ̨»úÆ÷ÉÏÅäÖúÃApache ·þÎñÆ÷£¬¿ÉÀûÓÃËüÏìÓ¦HTML£¨±ê׼ͨÓñê¼ÇÓïÑÔϵÄÒ»¸öÓ¦Óã©Ò³ÃæµÄ·ÃÎÊÇëÇó¡£ Êµ¼ÊÉÏTomcatÊÇApache ·þÎñÆ÷µÄÀ©Õ¹£¬µ«ÔËÐÐʱËüÊǶÀÁ¢ÔËÐеģ¬ËùÒÔµ±ÄãÔËÐÐtomcat ʱ£¬Ëüʵ¼ÊÉÏ×÷Ϊһ¸öÓëApache ¶ÀÁ¢µÄ½ø³Ìµ¥¶ÀÔËÐеġ£ (ÔðÈα༣ºadmin) |