Resin is a small and open-source JSP parser. It is a good tool for debugging JSP programs. This tool is simpler than other complicated configuration tools such as Tomcat, it is easy to get started and does not require any configuration. It is also difficult to make some inexplicable errors.
Resin: bytes.
Resin can also be integrated with Web servers such as IIS and Apache to facilitate program debugging. Here we will introduce how to integrate resin and IIS.
The integration procedure is as follows:
1. Set Environment Variables
Resin_home = C:/resin-3.0
2. Run setup.exe in the resindirectory for integrated configuration.
In this process, you need to copy the C:/resin-Pro-3.0.18/Win32/isapi_srun.dll file to C:/inetpub/scripts. if setup.exe fails to copy the file, you can manually copy it.
3. Configure the resin. conf file
<! -- Configures the default host, matching any host name -->
<Host ID = "" Root-directory = ".">
<! --
-Configures an explicit root web-app matching
-Webapp's Root
-->
<Web-app id = "/" document-directory = "webapps/jsptest"/> 4. Test the JSP program
After completing the preceding three steps, you can perform the test. First, run resinand directly click httpd.exe in the resindirectory.
Create a text file with the following content:
Hello, this is my first JSP web page!
2 + 2*2 = <% = 2 + 2*2%>
Save the file as test. jsp and save it to the webapps/jsptest directory. Then, Use http: // 127.0.0.1/test. jsp.
The effect is as follows: