JS with JSP developed a program for a lot of time, but the feeling of the master of JSP is still not enough. Now let's analyze the *_jsp.java file after the *.jsp file is compiled.
First write a simple my.jsp file as follows:
<%@ page contenttype= "text/html; charset=gb2312 "language=" java "import=" java.sql.* "errorpage=" "%>"
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title>baiming</title>
<body>
Hello
</body>
****************************************************************
Change the file side to the Tomcat root directory \webapps\root.
Run Tomcat, enter http://localhost:8080/my.jsp in the address bar
The My_jsp.java file is generated under the Tomcat root directory \work\catalina\localhost\_\org\apache\jsp.
Let's look at this file now:
Package org.apache.jsp;
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.