j Tomcat PDF (1)

 Documents

 3 views
of 26
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Description
Tomcat for beginning Web developers Skill Level: Introductory Sing Li (westmakaha@yahoo.com) Author Wrox Press 20 Oct 2005 The Apache Tomcat application server is no longer the exclusive domain of advanced Web system developers. In this tutorial, Sing Li shows beginning Web developers how to leverage their current Java™ development skills to program server-side JSPs, servlets, and Web services using Tomcat. Section 1. Before you start About this tutorial This tutorial gives Java Web developers
Share
Tags
Transcript
  Tomcat for beginning Web developers Skill Level: IntroductorySing Li(westmakaha@yahoo.com) AuthorWrox Press20 Oct 2005The Apache Tomcat application server is no longer the exclusive domain ofadvanced Web system developers. In this tutorial, Sing Li shows beginning Webdevelopers how to leverage their current Java™ development skills to programserver-side JSPs, servlets, and Web services using Tomcat. Section 1. Before you start About this tutorial This tutorial gives Java Web developers an introduction to programming JavaServerPages (JSPs), servlets, and Web services using Tomcat, an open source applicationserver from the Apache Foundation. The tutorial guides you through the followingtasks:ã Downloading and installing your own Tomcat server.ã Coding and deploying a JSP on Tomcat.ã Coding and deploying a servlet on Tomcat.ã Coding and deploying a Web service using Tomcat and Apache Axis.The tutorial provides an overview of JSP, servlets, and Web services but is notintended to cover those technologies in depth. Tomcat for beginning Web developersTrademarks © Copyright IBM Corporation 2005. All rights reserved.Page 1 of 26  Prerequisites You need to be familiar with the Java programming language, object-oriented designprinciples, and basic TCP/IP networking concepts to get the maximum benefit fromthis tutorial. An understanding of the networking APIs in the JDK is ideal, althoughnot mandatory.To run the examples in this tutorial, you need:ã A working installation of JDK 1.5.0 or later.ã A running installation of Tomcat 5.5 or later, available athttp://jakarta.apache.org/tomcat/ . This tutorial includes detailed download,installation, and setup instructions for Tomcat.To run the Web services example, you also need to install:ã Apache Ant 1.5.2 or later, available athttp://ant.apache.org/ ã Apache Axis 1.2.1 or later, available athttp://ws.apache.org/axis/ . Thistutorial includes detailed installation instructions for Axis.The recommended system configuration for running the tutorial:ã A system supporting JDK 1.5.0 with at least 512MB of memory. Theinstructions in the tutorial are based on a system running MicrosoftWindows.ã At least 50MB of disk space to install the software and examples. Section 2. What is Tomcat? Tomcat is an open source server from the Apache Software Foundation. It is a Webapplication server, which means that it comes ready to support programming usingJavaServer Pages (JSPs) and servlets.Since early 2000, Tomcat has served as the reference implementation for the latestJava Servlet and JSP specifications. Tomcat 5.5, the latest Tomcat version as of thiswriting, supports the latest Java Servlet 2.4 and JavaServer Pages 2.0 standards(seeResources). Tomcat also includes a limited Web server that can serve staticWeb pages when executed in stand-alone mode (by default). developerWorks® ibm.com/developerWorksTomcat for beginning Web developersTrademarks © Copyright IBM Corporation 2005. All rights reserved.Page 2 of 26  Because of a variety of open source libraries and extensions, Tomcat supports:ã Web services using the Apache Axis servletã Development frameworks, such as Apache Strutsã Templating engines, such as Apache Jakarta Velocityã Object-relational mapping technology, such as HibernateThis tutorial shows you how to use Tomcat to learn JSP, servlet, and Web servicesprogramming. Use of Struts, Velocity, and Hibernate with Tomcat is beyond thistutorial's scope.In the past, because a high level of expertise was required to configure andadminister Tomcat, the primary Tomcat users were advanced server-side applicationdevelopers. Now -- thanks to the maturing of Tomcat's GUI installer, the ability toinstall the server as a system service, and stabilization of the server's features --even beginning Web developers can take advantage of this versatile server. Section 3. Tomcat installation and setup Downloading Tomcat To download the latest version of Tomcat, go to the Apache Tomcat home page(seePrerequisites), shown in Figure 1, and click the Tomcat 5.x link under the Download heading (the area outlined in red in Figure 1): Figure 1. Apache Tomcat project home page ibm.com/developerWorks developerWorks® Tomcat for beginning Web developersTrademarks © Copyright IBM Corporation 2005. All rights reserved.Page 3 of 26  Page 3 of 11 Document options Print this page PDF - A4 475 KB PDF - Letter 479KB Get Adobe® Reader® Sample code Rate this tutorial Help us improve thiscontent Tomcat installation and setup Downloading Tomcat To download the latestversion of Tomcat, go to the Apache Tomcat home page (see Prerequisites), shownin Figure 1, and click the Tomcat 5.x link under the Download heading (the areaoutlined in red in Figure 1): Figure 1. Apache Tomcat project home page You have achoice among the latest 5.5.x releases. Choose the binary distribution of the lateststable (nonbeta and nonalpha) release. For Windows systems, download the EXEbinary for simple installation. Installing Tomcat The EXE binary installer does the following: developerWorks® ibm.com/developerWorksTomcat for beginning Web developersTrademarks © Copyright IBM Corporation 2005. All rights reserved.Page 4 of 26
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks