Entry
JSP: Apache: How to install Apache-Tomcat/Jakarta v4, in order to be able to run JSP or servlet?
Apr 21st, 2007 12:05
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 31 May 2001 - 06:07 pm ------------------------
JSP: Apache: How to install Apache-Tomcat/Jakarta v4, in order to be
able to run JSP or servlet?
1. -Download and install Tomcat v4
2. -Test if Tomcat works OK
1. -Open a browser
2. -Type the URL
http://localhost:8080
3. -You should see a page showing the Tomcat home page
3. -Check if the JSP examples work, by clicking on this Tomcat
homepage on the left on the link 'JSP Examples'.
(If you get an internet server error 500, check that JAVA_HOME
and CATALINA_HOME environment variables are set correct,
e.g. by running
c:\program files\apache tomcat 4.0\bin\shutdown.bat
you should not see any errors then)
4. -Create a new text file called e.g. 'helloworld.jsp' and copy it to
the default directory (remember that the filename is case
sensitive, you will have to save it in lower case,
e.g. as c:\program files\apache tomcat 4.0
\webapps\root\helloworld.jsp )
<HTML>
<% out.print( "Hello World from JSP" ); %>
</HTML>
5. -Goto your browser, and type the URL
http://localhost:8080/helloworld.jsp
You should now see on the screen
Hello World from JSP
6. -When you are finished, possibly stop Tomcat by typing the command,
e.g. in an MSDOS box:
c:\program files\apache tomcat 4.0\bin\shutdown.bat
===
Internet: see also:
---
Tomcat: Link: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/45112/fid/1669
----------------------------------------------------------------------