esuslogo
 [To advertise Java(tm) Events here, contact joris@esus.com!]
banner

Java™
by example!






New @ Esus.com


  gb  In-house search engine for better results!

  gb  Get updates with the esus.com
newsletter!









  Home 
 Browse Categories 
 Ask a Java Question 
 Help 
  For Java Tips & Tricks, subscribe to the esus.com newsletter!
Search Java Q&A, Links, API's:   adv 

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)

This code sample is only viewable to esus.com members
Login or become a member!



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.

This code sample is only viewable to esus.com members
Login or become a member!



4) Try out the webserver: type in your web browser

This code sample is only viewable to esus.com members
Login or become a member!



5) Write a Hello-World JSP:
hello.jsp:

This code sample is only viewable to esus.com members
Login or become a member!



6) Deploy the hello.jsp page. Save the file hello.jsp in:

This code sample is only viewable to esus.com members
Login or become a member!



7) Test hello.jsp! Type in your web browser:

This code sample is only viewable to esus.com members
Login or become a member!




Further Information
Author of answer: Joris Van den Bogaert

Comments to this answer are only viewable by members. Login or become a member!





Terms of Service | Privacy Policy | Contact

Copyright © 2000-2003 Esus.com - All Rights Reserved 
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. Esus.com is independent of Sun Microsystems, Inc. All other trademarks are the sole property of their respective owners.