Integrate resin into IIS

Source: Internet
Author: User
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.