Hi ,
I am using tomcat 4 to run the servlets. And I am accessing the servlets using javacode(HttpURLConnection class and its getInputStream, getResponseMessage and getResponseCode) This is working well for existing servlets. But  If I try to access servlet with wrong name I should get the corresponding ResponseCode and responseMessage. (e.g. 404/ Not Found) but I am getting response code and message as blank. However if seen in browser I get proper message for corresponding errors.
Can u pl help me how I can get same code and message (what I can get browser) using java code.
Thanks and Regards,
...ManojD
-----------------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to