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
- < connector port="80" protocol="HTTP/1.1" ...>
3) Set automatic loading and modify the conf \ context. xml file.
- < context reloard="true">
4) web file directory
Webapplications ------ MyWeb ------ WEB-INF -------- web. xml
| ______ Index. jsp | ___ lib
| ___ Classes
5) servlet configuration in web files
- < Servlet>
- < Servlet-name>Servlet name</Servlet-name>
- < Servlet-class>Servlet Class Name</Servlet-class>
- </Servlet>
- < Servlet>
- < Servlet-name>Servlet name</Servlet-name>
- < Servlet-pattern>/MyServlet</Servlet-pattern>
- </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.
- Analysis of Advantages and technical difficulties of JSP Web development technology
- Detailed analysis of nine implicit JSP objects
- Jsp xml xslt converts output to HTML
- Analysis on single processing and multi-task processing of JSP Technology
- JSP variables are called range variables in the specification.