Some netizens do not know how to run their own JSP files. I will give you a brief introduction here and provide you with some reference:
1. Download and install Tomcat. : Http://jakarta.apache.org/tomcat
2. compile your own JSP webpage and Java object.
3. Configure your own web application. Configuration method:
Add a line to the tomcat_home/CONF/server. xml file:
<Content Path = "/appname" docbase = "webapps/appname" DEBUG = "0" reloadable = "true"/>
Tomcat_home is the main directory of Tomcat, and appname is the name of your web application.
4. Copy your JSP, HTML, and image files to the tomcat_home/webapps/appname directory.
5. compile your Java file.
6. Copy the compiled class file to the tomcat/webapps/WEB-INF/classes directory. You can also package the class file into a jar file to the tomcat_home/webapps/WEB-INF/lib directory.
7. All is OK! You can see your results in your browser:
HTTP: /localhost: 8080/appname/youjsp. jsp
Here, appname is the Web application name you configured, and youjsp. jsp is the JSP file name you wrote.