The latest simple and practical JSP Dynamic Web site environment to build the detailed steps

Source: Internet
Author: User
Tags variables version
The latest simple and practical JSP Dynamic Web site environment to build the detailed steps, according to the internet appears the latest Web server Software UFO build site, tested n times, no problem:

The latest simple and practical JSP Dynamic Web site environment to build the detailed steps, according to the internet appears the latest Web server Software UFO build site, tested n times, no problem:
Content tip: Sun's JSP (Java Server Pages) is a dynamic web development technology that executes on the server side, based on Java technology. When executing a JSP, you need to set up an engine that compiles JSP pages on the Web server. There are several ways to configure a JSP environment, but the main task is to install and configure the Web server and JSP engine, and to introduce a solution to build the most simple and high-quality JSP running environment.

Introduction of related Software

1, JDK:JAVA2 software development tools, is the basis of Java applications. JSP is based on Java technology, so you must install the JDK before you configure the JSP environment.

2, UFO: The latest release of the support JSP Server software, as a stand-alone Web server to use. That is, the support of static pages, but also support dynamic pages, processing both kinds of pages are very fast, and the software itself is very robust, there will be no memory leaks and the server itself down the phenomenon. For beginners, it is almost a beginner's choice not to do any job of deploying and configuring environment variables.

Second, software download

1, JDK1.5.0

Version: Jdk1.5.0_16 (JDK1.5.0 and above can be)
Address: http://java.sun.com/javase/downloads/index_jdk5.jsp

2, UFO 0.999

Version: 0.999 (1.79MB)

Address: http://www.gm365.com on the front page
III. Preparation before the configuration

(a) Prepare a test JSP page

Open a text editor such as Notepad, enter the following code, and save it as test. JSP (note that the extension is. jsp).

The following are the referenced contents:


JSP test Page


<%out.println ("

Hello world!

");%>

(ii) Installation of JDK1.5.0_16
1, this needless to say everyone will, directly run the downloaded Jdk-1_5_0_16-windows-i586-p file, according to the installation Wizard installed to a directory, such as installation to D:\DK1.5.0_16.
2, do not add environment variables, only need to do the following work:
Open the Setclasspath.bat file in the bin directory in the UFO
Under A:windows, open the Bin directory in the UFO, open the edit Setclasspath.bat file to insert a row: Set Java_home=d:\jdk1.5.0_16 (that is, set the Java_home to the JDK installation directory on your computer), After the modification, knock Startup.bat can start the UFO;
B:linux operating system knock./startup.sh can start the UFO directly;

Four, then you can do the overall test work

Take test.jsp as an example: Put the test.jsp in the D:\UFO\webapps\examples\jsp directory and start the UFO. Open the browser, enter http://localhost:80/examples/jsp/test.jsp in the Address bar,
You will see Hello world!.

V. Concluding remarks

Building JSP's operating environment is the basis of learning JSP technology, this method is based on the latest software UFO configuration; Because the UFO has the environment variable configuration work ahead of time, so build JSP operating environment is very simple, for the website development This, especially the new person is very helpful. The performance of the new software has to be experienced by developers.



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.