resin配置JSP
?
摘要
IIS WEB以其管理操作簡(jiǎn)單和對(duì)ASP的支持而受不少人的喜歡。這里介紹怎么用resin使IIS支持jsp和servlet。?
一、分別安裝配置iis和resin1.1使各自都單獨(dú)能正常運(yùn)行。iis和resin1.1的安裝后路徑如下:c:\apache 和 c:\resin1.1。?
二、配置IIS?
1.拷貝iis_srun.dll 到IIS scripts目錄"c:\inetpub\scripts";?
2.在c:\inetpub\scripts目錄下創(chuàng)建配置文件(resin.ini)用于指定resin的配置文件的位置。?
resin.ini內(nèi)容如下:?
CauchoConfigFile c:/resin1.1/conf/resin.conf?
三、配置resin?
<caucho.com>?
<http-server app-dir=′C:\Inetpub\wwwroot′>?
<servlet-mapping rl-pattern=′/servlets/*′ servlet-name=′invoker′/>?
<servlet-mapping rl-pattern=′*.xtp′ ervlet-name=′com.caucho.jsp.XtpServlet′/>?
<servlet-mapping rl-pattern=′*.jsp′ servlet-name=′com.caucho.jsp.JspServlet′/>?
</http-server>?
</caucho.com>?
四、測(cè)試?
1、 運(yùn)行IIS,啟動(dòng)resin的jsp引擎(運(yùn)行c:\resin1.1\bin\srun.exe)?
2、 把一個(gè)jsp文件(test.jsp )放入IIS的C:\Inetpub\wwwroot目錄下.?
test.jsp如下:?
<%@ page language=java?>?
2+2=<%=2+2%>?
瀏覽http://localhost:port/test.jsp。你將看到:2+2=4<??這個(gè)結(jié)果?
注:port為端口號(hào),調(diào)試環(huán)境nt4.0+iis+resin1.1
IIS WEB以其管理操作簡(jiǎn)單和對(duì)ASP的支持而受不少人的喜歡。這里介紹怎么用resin使IIS支持jsp和servlet。?
一、分別安裝配置iis和resin1.1使各自都單獨(dú)能正常運(yùn)行。iis和resin1.1的安裝后路徑如下:c:\apache 和 c:\resin1.1。?
二、配置IIS?
1.拷貝iis_srun.dll 到IIS scripts目錄"c:\inetpub\scripts";?
2.在c:\inetpub\scripts目錄下創(chuàng)建配置文件(resin.ini)用于指定resin的配置文件的位置。?
resin.ini內(nèi)容如下:?
CauchoConfigFile c:/resin1.1/conf/resin.conf?
三、配置resin?
<caucho.com>?
<http-server app-dir=′C:\Inetpub\wwwroot′>?
<servlet-mapping rl-pattern=′/servlets/*′ servlet-name=′invoker′/>?
<servlet-mapping rl-pattern=′*.xtp′ ervlet-name=′com.caucho.jsp.XtpServlet′/>?
<servlet-mapping rl-pattern=′*.jsp′ servlet-name=′com.caucho.jsp.JspServlet′/>?
</http-server>?
</caucho.com>?
四、測(cè)試?
1、 運(yùn)行IIS,啟動(dòng)resin的jsp引擎(運(yùn)行c:\resin1.1\bin\srun.exe)?
2、 把一個(gè)jsp文件(test.jsp )放入IIS的C:\Inetpub\wwwroot目錄下.?
test.jsp如下:?
<%@ page language=java?>?
2+2=<%=2+2%>?
瀏覽http://localhost:port/test.jsp。你將看到:2+2=4<??這個(gè)結(jié)果?
注:port為端口號(hào),調(diào)試環(huán)境nt4.0+iis+resin1.1
?