Simple JSP environment variable configuration

Source: Internet
Author: User

The following describes how to configure JSP environment variables (tomcat + MyEclipse + mysql)

Tomcat server configuration

1) Configure JDK: Add JRE_HOME = % JAVA_HOME % to the environment variable;

2) Change the port number. Oracle server port 8080, mysql port 3306, and network port 80.

Modify the conf \ server. xml file

 
  1. < connector port="80" protocol="HTTP/1.1" ...> 

3) Set automatic loading and modify the conf \ context. xml file.

 
  1. < context reloard="true"> 

4) web file directory

Webapplications ------ MyWeb ------ WEB-INF -------- web. xml

| ______ Index. jsp | ___ lib

| ___ Classes

5) servlet configuration in web files

 
  1. < Servlet> 
  2. < Servlet-name>Servlet name</Servlet-name> 
  3. < Servlet-class>Servlet Class Name</Servlet-class> 
  4. </Servlet> 
  5. < Servlet> 
  6. < Servlet-name>Servlet name</Servlet-name> 
  7. < Servlet-pattern>/MyServlet</Servlet-pattern> 
  8. </Servlet> 

Browser http: // localhost: 80 // MyWeb/MyServlet

6) configure the tomcat path in MyEclipse: window-preferences-MyEclipse...-Servers;

Then Add Deployment for Deployment.

In this way, the JSP environment variables are configured.

  1. Analysis of Advantages and technical difficulties of JSP Web development technology
  2. Detailed analysis of nine implicit JSP objects
  3. Jsp xml xslt converts output to HTML
  4. Analysis on single processing and multi-task processing of JSP Technology
  5. JSP variables are called range variables in the specification.

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.