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> page then includes our common JSP header, which displays the information<br />

specified in the initial form, such as trace level and number of iterations. <strong>The</strong> rest<br />

of the page then outputs the values of the request attributes using the scriptlet<br />

format , shown in Figure B-44. In our application, the<br />

JavaBean component encoding contains the encoding used to convert the input<br />

COMMAREA into bytes, and is inserted into the HTML output with the JSP<br />

scriplet .<br />

<br />

Results COMMAREA <br />

Input:<br />

Output using :<br />

Output using default encoding: <br />

Output in HEX: <br />

<br />

Figure B-44 Outputting the results into the HTML<br />

<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.<br />

error.jsp<br />

<strong>The</strong> JSP error.jsp is used when an error occurs inside the <strong>CICS</strong> ECI resource<br />

adapter or our code, resulting in an exception being thrown. It does not display<br />

the output COMMAREA. Instead, it displays the contents of the exception that<br />

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

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 from <strong>WebSphere</strong><br />

Studio:<br />

1. From J2EE Perspective Navigator, right-click CTGTesterCCIWeb 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 CTGTesterCCIServlet in the<br />

Servlets list (Figure B-45 on page 378).<br />

Appendix B. Sample applications 377

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

Saved successfully!

Ooh no, something went wrong!