|
Java™ by example!
|
|
|
How do I get started with JSP using Tomcat?
This step-by-step explanation shows you how to run your first JSP with the Tomcat, the official reference implementation for the Java Servlet 2.2 and JavaServer Pages 1.1 technologies. 1) Download tomcat which is a JSP engine that allows you to deploy and execute JavaServer Pages.
http://jakarta.apache.org/downloads/binindex.html
2) Set the environment variable JAVA_HOME to your current Java development kit: (on Windows)
3) Start the Tomcat webserver. Tomcat includes a small HTTP server mainly for testing reasons. It is recommended that real-world sites use a web server such as Apache for static pages and use Tomcat as a Servlet/JSP add-on.
4) Try out the webserver: type in your web browser
5) Write a Hello-World JSP: hello.jsp:
6) Deploy the hello.jsp page. Save the file hello.jsp in:
7) Test hello.jsp! Type in your web browser:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|