39 lines
1.9 KiB
HTML
39 lines
1.9 KiB
HTML
|
<!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>Troubleshoot by problem</title>
|
||
|
</head>
|
||
|
|
||
|
<BODY>
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
<h5><A NAME="servtest"></A>Testing a servlet</h5>
|
||
|
|
||
|
<p>A quick and easy way to test the ServletSample is to invoke it by URL in your browser. The ServletSample includes a parameter, myname, that should be included in the URL.</p>
|
||
|
|
||
|
<p>Perform these steps to invoke ServletSample:</p>
|
||
|
|
||
|
<ol>
|
||
|
<li><p>Make sure your HTTP Server for i5/OS instance is running. As another option, you can use the HTTP Server internal to WebSphere Application Server - Express.</p> </li>
|
||
|
|
||
|
|
||
|
<li><p>If your server instance is not running, use the HTTP Server Administration interface to start it. For more information, see <a href="../admin/guistrtntstapp.htm">Start and test a new WebSphere Application Server - Express application server</a> in the <em>Administration</em> topic.</p></li>
|
||
|
|
||
|
<li>Go to: http://<em>your.server.name</em>/servlet/ServletSample?myname=<em>yourname</em>, where <em>your.server.name</em> is your Web server domain name, and where <em>yourname</em> is your first name. Press <strong>Enter</strong>.
|
||
|
|
||
|
<p><strong>Note:</strong> If your HTTP server instance does not use the default port, specify the port number. For example, <em>your.server.name</em>:8000</p>
|
||
|
|
||
|
<p>In your browser, a page that is titled <tt>Just a basic servlet</tt> displays. Under the heading is a line that reads <tt><em>Your name</em>, this is a very basic servlet.</tt>, where <em>Your name</em> is the value you typed at the end of the URL in the previous step.</p></li>
|
||
|
</ol>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|