I am using servlets and a third party API to gain access to our 3270
mainframe transactions. I have gotten a few to work OK but have a question.

If I send form field parameters to a servlet, it passes the parameters to
methods in other classes which call the mainframe screens. Then I "scrape"
the returned screen and feed the screen rows into Vector elements which are
passed back to the servlet for html display.

Now, what happens if the user has entered invalid data in the form fields in
such a way that the correct mainframe screen is not returned? I need to be
able to respond back to the user 1) the error returned, and 2) what is now
expected. Then, I need new (or modified) form data from the user and then,
still within the confines of the same "session", feed the new or modified
data into the appropriate MF fields and complete the transactions so I can
then continue to get the correct returned MF data.

Is this something that servlet sessions handle? Any suggestions on the best
(read easiest for novice) approach to this situation would be greatly
appreciated!!!

Along the same lines, this sort of thing could be used so the user could run
any number of mainframe transactions after logging on. Each servlet or html
page could check whether a MF authentication was validated at the beginning,
and then is passed along, until a button is pressed to initiate the
mainframe code to actually logoff completely.


Sorry for rambling on and I know this will not apply to most, but I figured
I would find the answer here. I would also be interested in hearing from
anyone using servlets for mainframe interaction.

Thanks

Allen Schmidt
Northern VA Community College
[EMAIL PROTECTED]

___________________________________________________________________________
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