Jsp
The full name of the JSP is Java Server Pages, the Chinese name Java Servers page, which is simply a simplified servlet design, it [1] is advocated by Sun Microsystems Company, many companies involved in the establishment of a dynamic Web technology standards. JSP technology is a bit like ASP technology, it is in the traditional Web page HTML (standard Common Markup Language subset) file (*.htm,*.html) inserted Java program segment (scriptlet) and JSP tag (tag), thereby forming a JSP file, suffix named (*.jsp). Web applications developed with JSP are cross-platform and can run on Linux and other operating systems.
Operating Environment
Operating Environment: Eclipse+tomcat
Tomcat
Tomcat server is a free open source Web application server, belongs to the lightweight application server, in small and medium-sized systems and concurrent access users are not widely used, is the first choice to develop and debug JSP programs. For a beginner, it can be thought that when the Apache server is configured on a single machine, it can respond to requests for access to the HTML (one application under the standard Universal Markup Language) page. In fact, Tomcat is an extension of the Apache server, but it runs independently at runtime, so when you run Tomcat, it actually runs separately as a separate process from Apache.
Everyone should know that HTML can be run out of the browser page, and php,jsp these need to parse the server to see the page display content, so need to find a server that can parse the JSP language, I use Tomcat,
Eclipse this I don't say much, learn Java should know very well this software
- Download the software: First download the tomcat server, online a large pile, unzip the installation, find a path to install, remember the path
- Add Tomcat: Open eclipse,window-->preferences-->server-->runtime environments-->add--> Click to select the version of Tomcat, As with the version you downloaded, add success!
- Build the project: Dynamic Web project--> under File-->new-->other-->web It's going to be behind you, and notice that it's always next, Finally need to tick to create the Web. xml file, do not tick the line, you create a content under the file, you do not know or tick it ....
- Project is built, the following to see everyone's level play, webcontent This folder is the location of some web operations files, Web-inf is a secure folder, the future items are placed in this folder, external inaccessible, only internal files can be accessed to, You can create a. jsp file under WebContent first
- Run Project: Right-click on project run as to display the address on the browser is the LOCALHOST:8080/project name/file name. jsp
Using Eclipse to build a Tomcat web App project detailed steps
JSP Runtime Environment--tomcat