ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/program/servcrt.htm

39 lines
1.7 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Create a servlet</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><A NAME="servcrt"></A>Create a servlet</h4>
<p>In this topic, we feature how to create a sample servlet (<a href="sampserv.htm">ServletSample</a>), from start to finish. We explain the sample code and give you pointers on how to develop your own servlets.</p>
<p>While the details of the steps below are specific to the ServletSample servlet code, you can use the information in this section as an example of how to develop your own servlets.</p>
<p>To create the ServletSample servlet, perform these steps:</p>
<blockquote>
<p><a href="servwrt.htm"><strong>Step 1: Write the servlet</strong></a>
<br>Follow along as we write the ServletSample servlet and give you tips for writing your own servlets.</p>
<p><a href="servcomp.htm"><strong>Step 2: Compile the servlet</strong></a>
<br>Use Qshell to compile the sample servlet and your own servlets.</p>
<p><strong>Step 3: Package and deploy an application</strong>
<br>Use the WebSphere Development Studio Client to package compiled code into a Web module before you install it on the server and to create a deployment descriptor (web.xml) file. For more information, see the WebSphere Development Studio Client.</p>
<p><a href="servtest.htm"><strong>Step 4: Test the servlet</strong></a>
<br>Run the ServletSample to make sure it works.</p>
</blockquote>
</body>
</html>