Using resin to configure JSP environments in NT environments

Source: Internet
Author: User
Tags version variable root directory
JS First you need to install the IIS server on the WIN2000, and then proceed to the following steps:


  


One, download the necessary software.


  


One is the JDK, now the latest version is 1.4, can be downloaded to the official Java site:


http://java.sun.com/j2se/1.4/download.html


Choose Windows (Alllanguages,includingenglish) This, about 35M


  


the second is a JSP-enabled server. I chose resin because of its high efficiency and good support for XML and Chinese. The latest version is Resin-2.1.4, which can be downloaded to his official site:


http://www.caucho.com/download/


  


II, installation software:


  


1, installation JDK1.4


follow the normal steps after installation, you need to set the environment variables. Right-click My Computer-attribute-advanced-environment variable, add variable classpath in system variable (edit if present), variable value C:\j2sdk1.4.0\lib\tools.jar; C:\j2sdk1.4.0\lib\dt.jar (This assumes that you are installing in the default manner, otherwise you will adjust the JDK path yourself). Then edit the other variable path (if it does not exist, select Add), append C:\j2sdk1.4.0\bin\ to it;. Reboot Machine


2, installation Resin-2.1.4


  


compresses the downloaded compressed packets into a suitable location (assuming C:\resin-2.1.1). To run the Setup.exe in the C:\resin-2.1.1\bin\ directory, install the default value.


  


three, start JSP application Server





C:\resin-2.1.1\bin\ Directory of Httpd.exe, you can start the JSP server. You can also use him as a service for Windows2000. The specific approach is to execute the
in the command-line mode

C:\resin-2.1.1\bin\httpd-install


reboot the machine (or manually start the service)


  


Four, test:


in the browser address bar input: http://localhost:8080/, if there is a resin default home page, you can think that your JSP environment has been established.


you can do a further test. First, create a myjsp directory under the C:\resin-2.1.1\doc\ directory, in which a index.jsp text file is created to test. You can use the following code:


<% @pagelanguage = "java"%>


<HTML>


<head><title>jsp page </title></head>


<BODY>


<%stringhellostr= "hello,world!"; %>


<fontsize=6color=blue><%=hellostr%></font>


</body>


</html>


  


in the browser's address bar input: http://localhost:8080/Myjsp/


If it works, your JSP environment (including the Java Environment) has been established.


  


Note: For the default JSP root directory and the default starting document, see Resin's default home


Http://localhost:8080/, refer to the instructions for editing the resin.conf file.





Related Article

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.