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.

<strong>The</strong> results page outputs the COMMAREA data converted to a String using the<br />

JVM default encoding, the encoding specified in the form and in a hexadecimal<br />

representation. <strong>The</strong> page also outputs the ECI return code, error message, and<br />

<strong>CICS</strong> abend code (which should show normal).<br />

error.jsp<br />

<strong>The</strong> JSP error.jsp processes the results when an ECI error occurred. <strong>The</strong> file is<br />

similar to results.jsp, except it does not display the COMMAREA output (as there<br />

is none), but only shows the ECI return code, error string, and <strong>CICS</strong> abend code,<br />

in a highlighted format. <strong>The</strong> page also shows any errors found in the processing<br />

of the form parameters by the servlet.<br />

exception.jsp<br />

<strong>The</strong> JSP exception.jsp is used when an exception occurs inside the <strong>CICS</strong> TG<br />

Java class library. It does not display output COMMAREA or ECI return codes, as<br />

generally there won't be either. Instead, it displays the contents of the exception<br />

that occurred and any errors found in the processing of the form parameters by<br />

the servlet.<br />

Application XML<br />

<strong>The</strong> XML that describes the enterprise application can be examined from within<br />

<strong>WebSphere</strong> Studio.<br />

Web deployment descriptor<br />

To view the Web application XML, perform the following steps:<br />

1. From J2EE Perspective Navigator, right-click CTGTesterECIWeb and select<br />

Edit Deployment Descriptor.<br />

This displays the Web deployment descriptor editor's General tab. Click the<br />

Servlets tab to show the Servlets pane. Click CTGTesterECIServlet in the<br />

Servlets list (Figure B-13 on page 350).<br />

Appendix B. Sample applications 349

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

Saved successfully!

Ooh no, something went wrong!