Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Applet Servlet communication.


Message #1 by BIPIN MEHTA <bsm3477@y...> on Thu, 17 Oct 2002 00:41:48 -0700 (PDT)
Hello everybody,

 I am trying a sample application involving applet
servlet communication. The servlet is a simple
DayTimeServlet which returns the current date. 
The servlet works fine when invoked as :
http://localhost:8080/bsm/servlet/DayTimeServlet

In the applet I am creating a URLConnection object
with the above url. The URLConnection object is
created but throws an IOException in the 
 con.getInputStream() method call.

thanks in advance,
bipin

Following is the log in the java console -

http://localhost:8080/bsm/
http://localhost:8080/bsm/servlet/DayTimeServlet
inside constructor of HttpMessage
1
inside send getmessage
http://localhost:8080/bsm/servlet/DayTimeServlet
before conn
after conn
http://localhost:8080/bsm/servlet/DayTimeServlet
null
java.io.IOException
	at
com/ms/net/wininet/WininetURLConnection.getInputStream
	at com/jpm/is/im/bipin/HttpMessage.sendGetMessage
	at com/jpm/is/im/bipin/HttpMessage.sendGetMessage
	at
com/jpm/is/im/bipin/DaytimeApplet.getDateUsingHttpText
	at com/jpm/is/im/bipin/DaytimeApplet.refresh
	at com/jpm/is/im/bipin/DaytimeApplet.start
	at com/ms/applet/AppletPanel.securedCall0
	at com/ms/applet/AppletPanel.securedCall
	at com/ms/applet/AppletPanel.processSentEvent
	at com/ms/applet/AppletPanel.run
	at java/lang/Thread.run

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

  Return to Index