tomcatÏÂÈçºÎ²ÅÄÜÔËÐÐshtmlÎļþ£¿_JSP¼¼ÇÉ_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

tomcatÏÂÈçºÎ²ÅÄÜÔËÐÐshtmlÎļþ£¿

×÷ÕߣººÚ¿Í·ÀÏßÍø°²JSP½Ì³Ì»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²JSP½Ì³Ì»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£ºÎļþÔËÐвÅÄÜÈçºÎ
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£ºÎÒÃÇÖªµÀ£¬ÐèÒªÔËÐÐshtml£¬±ØÐëÔÚweb·þÎñÆ÷ÉÏÅäÖúÃssi¡£ÏÂÃæÊÇssiÔÚtomcat5.*ÉϵÄÅäÖ÷½·¨£º´ò¿ªtomcatÅäÖÃÎļþ£ºconf/web.xml£º1¡¢È¥µôÏÂÃæservletÇ°µÄ×¢ÊÍ/* <servlet><servlet-name>ssi...

ÎÒÃÇÖªµÀ£¬ÐèÒªÔËÐÐshtml£¬±ØÐëÔÚweb·þÎñÆ÷ÉÏÅäÖúÃssi¡£

ÏÂÃæÊÇssiÔÚtomcat5.*ÉϵÄÅäÖ÷½·¨£º

´ò¿ªtomcatÅäÖÃÎļþ£ºconf/web.xml£º

1¡¢È¥µôÏÂÃæservletÇ°µÄ×¢ÊÍ

/* <servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>
org.apache.catalina.ssi.SSIServlet
</servlet-class>
<init-param>
<param-name>buffered</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>expires</param-name>
<param-value>666</param-value>
</init-param>
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>4</load-on-startup>
</servlet>
*/

¸Ä³É

<servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>
org.apache.catalina.ssi.SSIServlet
</servlet-class>
<init-param>
<param-name>buffered</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>expires</param-name>
<param-value>666</param-value>
</init-param>
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>4</load-on-startup>
</servlet>

2¡¢È¥µôservletÓ³ÉäµÄ×¢ÊÍ

/*<servlet-mapping>
<servlet-name>ssi</servlet-name>
<url-pattern>*.shtml</url-pattern>
</servlet-mapping>
*/

¸Ä³É

<servlet-mapping>
<servlet-name>ssi</servlet-name>
<url-pattern>*.shtml</url-pattern>
</servlet-mapping>

3¡¢ÔÚserver\libĿ¼ÖÐÕÒµ½servlets-ssi.renametojarÎļþ£¬¸Ä³É servlets-ssi.jar

4¡¢ÖØÆôtomcat

5¡¢Ð½¨Ò»¸öshtmlÎļþ²âÊÔÒ»ÏÂ

<HTML>
<HEAD>
<TITLE>shtml²âÊÔ</TITLE>
</HEAD>
<BODY>
<!¨C#echo var=¡±DATE_LOCAL¡± ¨C>
<!¨C#include virtual=¡±hello.jsp¡±¨C>
</BODY>
</HTML>

Ö´ÐÐok£¡£¡£¡

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-16659-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-04-07 00:44:31  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer