The Artima Developer Community
Sponsored Link

Java Answers Forum
Applet Servlet communication

2 replies on 1 page. Most recent reply: Jun 18, 2003 2:33 AM by Adam Duffy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Amit Jain

Posts: 4
Nickname: amitjain
Registered: Dec, 2002

Applet Servlet communication Posted: Dec 19, 2002 8:53 AM
Reply to this message Reply
Advertisement
I have a strange problem, I am trying to make a socket connection from a applet to servlet at server end , The Chat application which I am trying to develop is working fine in (applet in Appletviewer) and (servlet in Servlet runner), but no connection is made between (applet in browser) and (servlet in servlet runner).Please suggest some solution, I want to make a online chat Application in Java.


Fredrik Forsberg

Posts: 2
Nickname: fredrikf
Registered: Jun, 2003

Re: Applet Servlet communication Posted: Jun 17, 2003 5:33 AM
Reply to this message Reply
I have the exact same problem. Mail me if you find
the solution:
fredrik_forsberg@hotmail.com

Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Applet Servlet communication Posted: Jun 18, 2003 2:33 AM
Reply to this message Reply
> I have a strange problem, I am trying to make a socket
> connection from a applet to servlet at server end

The socket solution for Applet to Servlet communication can run into problems with firewalls and such. You may be better off using HTTP.

Have a look at
http://www.servlets.com/cos/index.html

Of particular use to you might be the class <code>HttpMessage</code>.

Adam

Flat View: This topic has 2 replies on 1 page
Topic: How much testing is too much testing? Previous Topic   Next Topic Topic: Action on JTabbedPane

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use