JSP and Jakarta
JSP technology is one of the two template technology (JSP and Velocity) provided by Jakarta. These two are very good template technology. Jakarta's framework (such as Struts, Slide) provides a good support for JSP, and Java.apache's Framework (Turbine) provides Velocity a good support.
Run the JSP file
1. Download and install Tomcat. Download address: http://jakarta.apache.org/tomcat
2. Write your own JSP page and Java objects.
3. Configure your own web application. Configuration method:
Add a line in the tomcat_home / conf / server.xml file:
Among them, tomcat_home is the main directory of Tomcat, appname is the name of your web application.
4. Copy your JSP file, HTML file, and image files to tomcat_home / webapps / appname directory.
5. Compile your Java file.
6. Copy the compiled Class file to the Tomcat_Home / WebApps / Web-INF / CLASSES directory. You can also pack the class file into a JAR file to put it in the Tomcat_Home / WebApps / Web-INF / LIB directory.
7. http: // localhost: 8080 / appname / youjsp.jsp
Among them, appname is your web application name, youjsp.jsp is the name of the JSP file you have written.