JAVA/JSP learning series 3_php tutorial

Source: Internet
Author: User
Java JSP Learning Series 3. 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 on Xm 1. 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 we use E: esin114 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: esin114srunwin32-1.3.6mod_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, to directly run setup.exe under the E: esin114indirectory, Hook 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. (Source: viphot.com)

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 on Xm...

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.