<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="CommandPrompter class" />
<meta name="abstract" content="" />
<meta name="description" content="" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="cmdprmptr" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>CommandPrompter class</title>
</head>
<body id="cmdprmptr"><a name="cmdprmptr"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CommandPrompter class</h1>
<div><p></p>
<div class="section"><p>The CommandPrompter class prompts for the parameter on a given
command. The  CommandPrompter offers functionality that is similar to the iSeries™ CL
command  prompt (pressing F4) and the same as the <a href="../rzaih/rzaih3d.htm">Management Central command prompt</a>.</p>
<p>To use the CommandPrompter,
the server must be running i5/OS™ V4R4 or later.  For more information, see <a href="http://www-1.ibm.com/servers/eserver/iseries/navigator/infoapars.html" target="_blank"> iSeries Navigator Information APARs</a> and view
the Required Fixes for Graphical  Command Prompter Support.</p>
<p>Using CommandPrompter
also requires that you have the following jar files in  your CLASSPATH:</p>
<ul><li>jt400.jar</li>
<li>jui400.jar</li>
<li>util400.jar</li>
<li>jhall.jar</li>
</ul>
<p>You must also have an XML parser in your CLASSPATH. For more information
about using a suitable XML parser, see the following page:</p>
<blockquote><a href="rzahhxmlparserxslprocessor.htm">XML parser and XSLT processor</a></blockquote>
<p>All of the jar files, except for jhall.jar,
are included in IBM<sup>®</sup> Toolbox
for Java™.
 For more information about IBM Toolbox for Java jar files, see <a href="jarfilelist.htm#jarfilelist">Jar
files</a>. For more information about downloading jhall.jar, see the <a href="http://java.sun.com/products/javahelp/index.html" target="_blank">Sun
JavaHelp<sup>(TM)</sup></a> Web site  <img src="www.gif" alt="Link outside Information Center" />.</p>
<p>To construct a CommandPrompter
object, you pass it parameters for the parent  frame that launches the prompter,
the AS400 object on which the command will  be prompted, and the command string.
The command string can be a command name,  a full command string, or a partial
command name, such as <tt>crt*</tt>.</p>
<p>The CommandPrompter display is
a modal dialog that the user must close before  returning to the parent frame.
The CommandPrompter handles any errors encountered  during prompting. For
a programming example that shows one way to use the CommandPrompter, see the
following page:</p>
<blockquote><a href="cmdprmptrex.htm#cmdprmptrex">Example: Using CommandPrompter</a></blockquote>
</div>
</div>

</body>
</html>