Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javaservlet and CICS, does not work with Netscape

Status
Not open for further replies.

Swede

Programmer
May 17, 2001
6
US
Hello list,

I have a java servlet that is talking to CICS. This is a simple test servlet, mind you. And it works fine when i call it using IE, but when i call it with Netscape i get nothing. Not even a response or error, nothing.

How can this be??? Since everything is executed on the server the browser should not matter right? Has anyone else done something like this and has a clue what could be the reason for this?

I would really appreciate some kind of response or advice. Please, I don't get this. If you need some code snippets to look at i would be happy to post them.

Thanks in advance.

// Daniel
 
I have never seen something like that.
Maybe the Netscape is configured to send URLs in UTF8, and the servlet can not handle it???
Post the code or give an url, I will try it.

Bye, Otto.
[sig][/sig]
 
Hi Otto,

Thanks for taking the time to look at it.

First off i take two arguments from a static HTML page (user, password) and put them together into the commarea. Then it is submitted to the Cics. I hav not written this code so i am afraid i can not give much explantory comments to it.
Here is a snippet:

JavaGateway jgaConnection;
jgaConnection = new JavaGateway();
jgaConnection.setURL("xxx.xx.x.xx.");
jgaConnection.open();

ECIRequest eciRequest = null;

eciRequest = new ECIRequest("SEMCICX2", // CICS server
"SEMCICX2", // UserId, null for none
null, // Password, null for none
null, // Program name
abCommarea, // Commarea, bytearray
ECIRequest.ECI_NO_EXTEND,
ECIRequest.ECI_LUW_NEW);

eciRequest.Cics_Rc = 0;
eciRequest.Program = "ROHAH010";
ecRequest.Extend_Mode = ECIRequest.ECI_NO_EXTEND;

jgaConnection.flow(eciRequest);

String result = new String(eciRequest.Commarea, "ASCII");
String res = result.substring(sendcomm.length(),result.length());

out.println(&quot;<BR>Result: &quot; + res);


------------------------
Dont know if this will clear anything up. I am not familiar with this ECIrequests and so on. I just noticed this probem with netscape using the servlet.

Many thanks in advance.

// Daniel
 
I have solved it!

Or somewhat anyway... i added a trim() to the string before i wrote it to screen. And the commarea appeared on screen like magic. Apparently NS couldn't write out the results if there are to many blanks in the string. But the question remains, how come the servlet could not write to the response if there are to many blanks in it? I mean, the commarea wasn't even anywhere in the source of the response HTML. This could cause problems in later stages. I could write a method that translated blanks to &nbsp;. Has anyone else had this problem??

/ Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top