I. Preface
Tomcat is a good choice for beginners to execute JSP and servlet. You can also use resin. Both products do not cost a penny. Resin supports XML well.
Ii. Download and install
For the resin official site: http://www.caucho.com /.
Download from this address: http://www.caucho.com/download/index.xtp. the download is resin1.1.4133.
After downloading, decompress the package to a directory. Here I use E: \ resin114 as an example.
Iii. Configuration
Before that, of course, we have to install Apache and run it properly.
(1) Configure Apache
Open the httpd. conf file in the conf subdirectory of Apache and edit it with a text editing tool. Add the following lines:
Loadmodule caucho_module "E: \ resin114 \ srun/win32-1.3.6 \ mod_caucho.dll"
Addmodule mod_caucho.c
Cauchoconfigfile "E: \ resin114 \ conf \ resin. conf"
Sethandler Caucho-status
Note: The preceding steps can also be implemented in a simpler way, that is, run setup.exe under E: \ resin114 \ bin \ directory, check Apache, apply, and finally OK. In this way, the above rows should be automatically added.
(2) Configure Resin
There is a resin. conf file under the conf sub-directory of resin, which is backed up by one. Create the resin. conf file as follows:
Iv. Test
(1) Start resin:
There is a srun.exe under the resinbind, run it, and a window will appear.
(2) create a simple JSP file test. jsp (we use the resin site example)
This file is stored in: Apache/htdocs/test. jsp
The content is as follows:
2 + 2 =
(3) Run
Enter http: // localhost/test. jsp in the browser and the following result is displayed:
2 + 2 = 4
Now that you have successfully installed the file, you can create your own subdirectories under htdocs to manage files.
Note: In Step 4 (1), you can enable resin to add srunto win2000's service, so that srun.exe is automatically started every time the resinservice is started.
Recommended for beginners a programming technology learning site, 96 stack Software Programming Network, http://www.96dz.com, which has c ++ video tutorial, C # video tutorial, Java video tutorial download, c \ c ++, Java, and C #. net and other programming technology abstracts, including the current mainstream Linux programming and web programming learning materials video tutorial download.