当前位置:web 服务器 > IIS >>

配置iis和resin1.1

答案:IIS WEB以其管理操作简单和对ASP的支持而受不少人的喜欢。这里介绍怎么用resin使IIS支持jsp和servlet。
  一、分别安装配置iis和resin1.1使各自都单独能正常运行。iis和resin1.1的安装后路径如下:c:\apache 和 c:\resin1.1。
  二、配置IIS
    1.拷贝iis_srun.dll 到IIS scripts目录"c:\inetpub\scripts";
    2.在c:\inetpub\scripts目录下创建配置文件(resin.ini)用于指定resin的配置文件的位置。
     resin.ini内容如下:

        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>
  四、测试
    1、 运行IIS,启动resin的jsp引擎(运行c:\resin1.1\bin\srun.exe)
    2、 把一个jsp文件(test.jsp )放入IIS的C:\Inetpub\wwwroot目录下.
    test.jsp如下:
     <%@ page language=java?>
     2+2=<%=2+2%>

浏览http://localhost:port/test.jsp。你将看到:2+2=4<——这个结果

注:port为端口号,调试环境nt4.0+iis+resin1.1

上一个:Study on Applying Web Services in Mobile E-business
下一个:shark工作流文档翻译活动--shark(5)

Apache
IIS
Nginx
Tomcat
如果你遇到web 服务器难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,