1. What is JSP (JSP Pages) is a dynamic web page technical standard proposed by Sun Microsystems and jointly established by many companies. Its website is http://www.javasoft.com/products/jsp.
In the traditional web page HTML file (*. htm ,*. java program snippets (Scriptlet) and JSP Tags are added to html to form a JSP webpage (*. jsp ). When the Web server encounters a request to access the JSP webpage, it first executes the program fragment and then returns the execution result to the customer in HTML format. Program snippets can operate databases, redirect webpages, and send emails. This is the function required to build a dynamic website. All program operations are performed on the server, and the results are only obtained after the network is uploaded to the client. The client has the lowest requirements on the client browser and can implement no Plugin, no ActiveX, and no Java Applet, no Frame.
This article describes how to use JSP technology to develop dynamic web pages, and briefly analyzes the differences between JSP technology and Microsoft's ASP technology.
II. How to install and start the experiment JSP technology first requires the establishment of the runtime environment. This process is quite simple:
1. Download JDK (Java 2 SDK, Standard Edition, v 1.2.2) at http://java.sun.com/jdk ).
2. Download JSWDK (JavaServer Web Development Kit 1.0.1) at http://java.sun.com/products/jsp ). Linux users can download Tomcat 3.0 at ttp: // jakarta.apache.org.
3. Install Windows Firewall, modify the system environment parameters, add [x:] jdk1.2.2in to the PATH parameter, and add the new environment parameter CLASSPATH = [x:] jdk1.2.2libools. jar, where [x:] is the hard drive letter (c:, d:, etc.) for JDK installation ).
Jswdk's installation only needs to release the jswdk1_0_1-win.zip directory to the hard disk root directory (c:, d:, etc.), then you can find the jswdk-1.0.1 directory on the hard disk. If you do not want to retain JSWDK in the future, you can delete this directory without any system file or registry issues. For more details about the installation process and the installation of JDK and Tomcat in Solaris/Unix and Linux, refer to the installation instructions in the downloaded package.
4. Start the Windows NT environment as an example, execute startserver. bat in the jswdk-1.0.1 directory, you can start a JSWDK Web server that supports JSP Web technology. To avoid conflicts with existing Web servers (such as IIS and PWS), the JSWDK Web server uses port 8080.
After you type http: // localhost: 8080 or http: // 127.0.0.1: 8080 in the address bar of your browser, if you can see the JSWDK welcome page, the JSP experiment environment has been created, you can go to the next lab.
To disable the Web server, run stopserver. bat.
3. Simple examples of JSP: callback and index. jsp. That is to say, access http: // localhost: 8080is equal to ipvjswdk-1.0.1webpagesindex.html.
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.