01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

340 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

Field Name Purpose<br />

COMMAREA input commareaInput COMMAREA data<br />

COMMAREA length commareaLength Length of the COMMAREA<br />

Encoding encoding Encoding to convert data to before<br />

sending and after receiving<br />

<strong>Gateway</strong> daemon URL gatewayURL URL of the <strong>Gateway</strong> daemon to use<br />

<strong>Gateway</strong> daemon port gatewayPort Port of the <strong>Gateway</strong> daemon<br />

<strong>CICS</strong> Server server Server name as defined to the Client<br />

daemon to use<br />

User ID username User name to flow on the ECI request<br />

Password password Password to flow on the ECI request<br />

Mirror transaction mirror <strong>Transaction</strong> to use on the <strong>CICS</strong> server<br />

Trace trace Whether to enable <strong>CICS</strong> TG Java client<br />

trace<br />

<strong>The</strong> action of the HTML form is to call the servlet CTGTesterECIServlet, using<br />

the POST method to send the parameters. This means that the parameters are<br />

sent in the HTTP request body. Because an HTTP POST request is intended to<br />

affect some sort of change on the Web server, a Web browser will prompt to<br />

resubmit the data if the user clicks Refresh on the results page. Conversely, the<br />

GET method could be used, which sends the parameters on the HTTP request<br />

URL. Because HTTP GETs are not intended to alter anything on the Web server,<br />

the results page of such a request can be refreshed without a prompt being<br />

shown.<br />

Servlet<br />

In the following section, we describe the major code sections in the<br />

CTGTesterECIServlet servlet and how the servlet functions.<br />

<strong>The</strong> servlet is defined to be in the package itso.cics.eci.testereci. Figure B-3<br />

on page 341 shows the import statements used to give us access to the Java<br />

packages used in the servlet. <strong>The</strong> import of javax.servlet and<br />

javax.servlet.http give us access to the Java Servlet API set of classes; the<br />

import of java.io, java.util and java.text are required for utility classes used<br />

in the servlet; the import of com.ibm.ctg.client provides the <strong>CICS</strong> TG Java<br />

class library.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!