File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes HTTP server and Web Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTP server and Web Server" Watch "HTTP server and Web Server" New topic

HTTP server and Web Server

shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
I wanted to know
1. is HTTP server and web server are same thing ?
2. How applet communicates with servelet?
Scott Stirling

Joined: Mar 05, 2001
Posts: 24
1. Yes
2. It's up to you. Usually via URLConnections and ObjectStreams (if sending objects). Depends on what kind of data you're sending back and forth. Could also use HTTP or RMI.

Scott Stirling<BR>Author of <A HREF="" TARGET=_blank rel="nofollow">Java Server Pages Application Development</A>
Glen Tanner
Ranch Hand

Joined: Apr 16, 1999
Posts: 147

For the Applet to Servlet communication, check out Jason Hunter's "Java Servlet Programming" Chapter 10. You can get the source code here:
This example uses a HttpMessage object written by Hunter. You can download any helper classes from the Hunter's main page
[This message has been edited by Glen Tanner (edited March 06, 2001).]
Malu Sivasankar

Joined: Aug 02, 2000
Posts: 14
Pl. read this article @
for web server basics
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
You can also look at the ObjectServlet example in the JavaRanch common package
Hope This Helps
Carl Trusiak

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
ken chou
Ranch Hand

Joined: Feb 08, 2001
Posts: 68

For the Applet and Servlet Communication, take a look at this link:
I agree. Here's the link:
subject: HTTP server and Web Server
It's not a secret anymore!