This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
Hi

I was testing the examples of chatting program from Jason Hunters Servlet
Prog book for our requirements.If you would have went through then
Chap 10, servlet class ChatDispatch to select a type Http,Soc or RMI
Then Applet HttpAppletClass which initiates ChatServer servlet,

My problem is I've done everything as instructed in the book and the applet
gets loaded but doesn't do anything.
The applet HttpAppletClass has some methods depreciated and could this be
the problem?? I am using Tomcat 4 and put all my servlets inside examples
directory and use tomcat only

a part of code

while (nextMessage == null) {
          try {
                URL url = new URL(getCodeBase(),
"/examples/servlet/ChatServlet");
                HttpMessage msg = new HttpMessage(url);
                InputStream in = msg.sendGetMessage();
                DataInputStream data = new DataInputStream(
                                                           new
BufferedInputStream(in));
                nextMessage = data.readLine();

and I get the following error from my VAJAVA IDE 3.5

"The method readLine invoked for type java.io.DataInputStream with arguments
() is deprecated"

There are two other methods also with this depreciateion start() and Stop()

Could this be the problem or am I missing something else?. I know I'll have
to read the API's but am not so used to it <grin>?????

TIA

Thanks
Rizwan





As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.