Get your machine ready to run the JSP

Source: Internet
Author: User
Tags date
JS If you want to use JSP under the current Web server and the server itself does not support JSP and Java features, you can try using Allaire's jrun. It can work as a plug-in for the following Web server. Includes Netscape's enterprise and FastTrack Servers, Microsoft Internet Information Server (IIS), Personal Web Server (PWS), Apache and so on.

Download and install the required software
The downloadable JSDK version with the current version number 1.2.2-001 is released in the form of an installable compression package. Approximately 20MB of software packages provide a complete Java development environment that can create any solution based on Java and using the core of the standard API. The only thing a Web server that needs to run with a JSP is to access the Java compiler. The Web server locates the compiler by setting the installation directory for the JAVA_HOME environment variable to JSDK. If you have installed to the Windows system with the default installation directory, you need to add one line to the Autoexec.bat file: java_home=c:\1.2.2, and reboot the system.

After installing JSDK, download and install one of the JSWDK, Tomcat beta versions, and a java-based Apache Web server. As long as you can access it again, the specifics of the placement software do not really matter. Usually it is in the top-level directory, which allows you to replace the JSWDK or JSDK version without moving the other one. After the file is installed, you can develop the JSP.

Once the JSWDK has been properly installed, you can run the StartServer script to start the Web server listening on the default port 8080. To confirm that you have installed the relevant tools correctly after starting the server, you can test it by uploading a JSP sample file (http://localhost:8080/examples/jsp/). If you can successfully run one of the examples, you can confirm that the relevant software has been set up correctly. Conversely, if you see an error message in the control window used to start the server, you need to fix the related error. The most common problem is not setting the JAVA_HOME environment variable (or setting an error). To view the current environment variable settings, you can enter set at the DOS prompt.

Begin
Before interpreting JSP syntax, create a simple Web page that displays the current date and time, coexisting as sample.jsp:





<title>first page</title>


<body>


<%= new Java.util.Date ()%>

</H3>

</body>






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.