This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTP server and Web Server" Watch "HTTP server and Web Server" New topic
Author

HTTP server and Web Server

shivani anand
Ranch Hand

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

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="http://www.amazon.com/exec/obidos/ASIN/067231939X/ref=ase_electricporkchop/107-2476442-4883722" 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: http://www.servlets.com/jsp/examples/ch10/index.html
This example uses a HttpMessage object written by Hunter. You can download any helper classes from the Hunter's main page http://www.servlets.com
[This message has been edited by Glen Tanner (edited March 06, 2001).]
Malu Sivasankar
Greenhorn

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

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: http://www.j-nine.com/pubs/applet2servlet/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP server and Web Server