954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

HTTP server/servlets

hi
is there any difference between servlet and HTTP server.
I want to develop client server model (two tier) please help. how to do it?

syeda amna
Light Poster
28 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

for a SERVER -> you have (for instance) tomcat, jBoss, resin, ...
SERVLETS are java objects which (usually) extend HttpServlet, which you write yourself.

now, how extended is your knowledge of overall java development? if you have some what a base to start on, I'm sure you'll find enough resources online to help you on your way.

do remember, if you want to use servlets, make sure you're also aware of the deployment descriptor (web.xml) you'll have to use, and how to link to your servlet.

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

thanks for your reply. I am able to make a simple servlet wing eclipse and tomcat and it works very well.
now i want to to make a basic client server model. i know about socket client and server. now i want to know about how a servlet can respond to client.

syeda amna
Light Poster
28 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

define 'respond to client'?
do you mean you want it to use information you pass on from a webpage, and send it to another page?

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

Actually the client has to pass some information and that information will update in server database. How to do this.

syeda amna
Light Poster
28 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

define what you mean by 'client'. how to update a database, well, this is not specifically to servlets, so ..

make sure you make the right jdbc connections, and use the right sql expressions with the right parameters to make the necessary updates.

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

I have made jdbc connection and it is working with socket server.
Actually i want to develop multi tier system in which each computer can send and receive information or exchange information. I am unable to understand how can i do this?? Please help

syeda amna
Light Poster
28 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: