JSP Overview "JSP program development"

Source: Internet
Author: User
Tags tomcat server

P1 What is a JSP?
and Java-related technology, can develop dynamic, high-performance Web applications, a development language

P1 advantage is characteristic, then what are the advantages of JSP?
JSP implementation of the Web application, a. Its dynamic pages and static pages are separate, B. has been disconnected from the hardware platform, C. and is run after compilation.
What are the pros and cons of =====p1 JSP's post-compilation execution and ASP script-level execution?

What is the P2 JSP engine?
JSP application is built on the server, the server has a number of Web projects, obviously the server has a management type of program to manage multiple Web programs, this program is the JSP engine management JSP.

What is a tomcat server?
Tomcat is the most commonly used JSP engine, developed by Apache and Sun, free and open source, and can run a JSP project once the Tomcat is configured in Win7.


P2 What are the steps to build a tomcat server?

1. First download the Tomcat package, one is the decompression can be used, is generally a zip package. After decompression into the bin directory, the execution of Startup.bat start service area, explained that Tomcat after the launch will be a separate terminal window.
There is also an installation version of Tomcat, after download is the. exe, step by step, installation is complete.
2. After the installation, we go to the browser input localhost:8080 or 127.0.0.1:8080, if you see the Tom cat page, indicating that the server was built successfully.

P4 How do I configure a tomcat port?
Go to Tomcat's Conf folder, modify Server.xml to change port number? "Connector port= ' 8080 ' pro ..." change the 8080 here to another, save and restart the server.


What is the P4 JSP page?
JSP pages Save as a text file the extension is. jsp, which usually has a Java program, wrapped in <%%>, plainly, JSP page is the Java code into the HTML file, and the suffix is. jsp.


What is the P5 Web service catalog?
The web site that people visit, in the server view, is essentially a Web service directory, which is plainly a Web service directory.
The Web service catalog is composed of: 1. The root directory is the installation directory. Webapps.root, three floors. 2. All Web services directories are in this root directory, is its son directory, multiple Web services directory is the sibling directory.


P6 Creating a new Web service catalog is also a way to create a virtual directory, how is this implemented?
Suppose you want to use D:\MyBook\zhang and C:\wang as the Web service catalog and have users access the Web service catalog D:\MyBook\zhang and JSP pages under C:\wang using the Apple and cloud virtual directories.
First use Notepad to open the Conf folder under the Server.xml, find the part of </Host> (the book said in the back of the file), found in the </Host> before adding <context path= "/apple" docBase = "D:/mybook\zhang" debug= "0" reloadable= "true"/><context path= "/cloud" docbase= "C:\wang" debug= "0" reloadable= "True"/> Save after exiting, reboot Tomcat.


What is the principle of P7 JSP operation?

JSP Overview "JSP program development"

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.