What is the best way to approach the concept of client/server interaction
using Servlets?

I am using an API class set to "talk" to our mainframe using Servlets. Works
great for one-way basic inquiries. Now, I would like to be able to take info
from a form, pass it to the mainframe, and based upon the mainframe
response, present part of an html response.

As an example:
HTML form captures studentid, year and term of the semester and starts
Servlet connecting to the mainframe (CICS transaction.) Then, CICS checks
studentid and asks either for a PIN or 6-digit date of birth. I then want to
pass this to the browser and ask the user for one or the other based on what
CICS asks for. Then verify that the PIN or DOB is correct and continue on
and eventually return a screenful of data captured from CICS. Using static
studentid/PIN combination I have the final part working but not sure how to
handle the 2-way question/answer part between Servlet and browser.

I was considering sessions to handle the information. Grab the studentid and
run the Servlet. Then see what is asked for (PIN or DOB). Close the
mainframe connection and present another form (generated from Servlet) to
ask for one or the other. Then when PIN/DOB is submitted, the
session-collected studentid is presented back to CICS and the PIN/DOB is
filled in and verified. If in error, connection closes and another form is
generated stating error and this process starts again until all errors are
resolved.

Any help or information would be greatly appreciated!!!

Allen

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to