Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP server and Web Server

 
shivani anand
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Glen Tanner
Ranch Hand
Posts: 147
Java Python Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pl. read this article @
webbasics
for web server basics
 
Carl Trusiak
Sheriff
Posts: 3340
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also look at the ObjectServlet example in the JavaRanch common package
------------------
Hope This Helps
Carl Trusiak
 
ken chou
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic