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.

import javax.servlet.http.HttpServlet;<br />

import javax.servlet.http.HttpServletRequest;<br />

import javax.servlet.http.HttpServletResponse;<br />

import javax.servlet.*;<br />

import com.ibm.ctg.client.*;<br />

import java.io.PrintWriter;<br />

import java.io.IOException;<br />

import java.util.Date;<br />

import java.util.StringTokenizer;<br />

import java.text.DateFormat;<br />

import java.text.SimpleDateFormat;<br />

Figure B-3 Import statements<br />

Figure B-4 on page 342 shows the opening code section of our servlet. We<br />

extend the HTTPServlet class to make our class an HTTP protocol servlet.<br />

Following this, we first declare our instance variables and objects. <strong>The</strong>se are<br />

variables that we wish to share across all threads running within the servlet.<br />

Appendix B. Sample applications 341

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

Saved successfully!

Ooh no, something went wrong!