Iis web is favored by many people because of its simple management and support for ASP. This section describes how to use resin to enable IIS to support jsp and servlet.
1. install and configure iis and resin1.1 separately so that both of them can run normally. The installation paths of iis and resin1.1 are as follows: c: apache and c: esin1.1.
2. Configure IIS
1. Copy iis_srun.dll to the IIS scripts directory "c: inetpubscripts ";
2. Create a configuration file (resin. ini) in the c: inetpubscripts directory to specify the location of the resin configuration file.
The content of resin. ini is as follows:
CauchoConfigFile c:/resin1.1/conf/resin. conf
3. Configure resin
<Caucho.com>
<Http-server app-dir = C: Inetpubwwwroot>
<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>
Iv. Test
1. run IIS and start the resin jsp Engine (run c: esin1.1insrun.exe)
2. Put a jsp file (test. jsp) in the C: Inetpubwwwroot directory of IIS.
Test. jsp is as follows:
<% @ Page language = java?>
2 + 2 = <% = 2 + 2%>
Browse http: // localhost: port/test. jsp. You will see: 2 + 2 = 4 <-- this result
Note: port is the port number. The debugging environment is nt4.0 + iis + resin1.1.