一、前言
对于初学者来说,要执行JSP和Servlet,Tomcat是一个很不错的选择。你也可以用Resin,这两个产品都是可以不花一分钱的。 Resin对Xml的支持是很好的。
二、下载,安装
下载地址为Resin官方站点:http://www.caucho.com/。
从这个地址可以下载:http://www.caucho.com/download/index.xtp,我下载的是Resin1.1.4版本。
下载完,解压到一个目录,我这里用E: esin114作为例子。
三、配置
在这之前,当然我们要先安装了Apache,而且能正常运行了。
(1)配置Apache
打开apache的conf子目录下的httpd.conf文件,用文本编辑工具编辑它。加入如下几行:
LoadModule caucho_module 'E: esin114srunwin32-1.3.6mod_caucho.dll'
AddModule mod_caucho.c
CauchoConfigFile 'E:\resin114\conf\resin.conf'
SetHandler caucho-status
注意:上面的步骤也可以通过更加简单的方式实现,就是直接运行E: esin114in目录下的setup.exe,勾上apache,然后Apply,最后OK。这样,上面这些行应该会自动加上的。
(2)配置Resin
在resin的conf子目录下有个resin.conf文件,将该文件备份一个。然后建立resin.conf文件,如下内容:
四、测试
(1)启动Resin:
在resin的bin下有一个srun.exe,运行它,将出现一个窗口。
(2)做一个简单的jsp文件test.jsp(我们用resin站点的例子)
该文件放在:apache/htdocs/test.jsp
内容如下:
2 + 2 =
(3)运行
在浏览器中输入:http://localhost/test.jsp,应该出现下面结果:
2+2=4
好了,到这里你已经安装成功了,你可以在htdocs下建立一些自己的子目录, 管理文件。
注意:在四(1)中,启动resin 可以将srun加在Win2000的服务中,让每次这个resin服务自动启动,不必每次都运行srun.exe。(出处:viphot.com)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
