What is the difference between servlet and servlet container?

Questions by sujatham   answers by sujatham

Showing Answers 1 - 21 of 21 Answers

chandan

  • Sep 22nd, 2007
 

Servlet is a combine coding of HTML & Java while servlet container is a platform to execute it.

  Was this answer useful?  Yes

Ruthra

  • Sep 22nd, 2007
 

Servlet is sever side of the Java pgm. That is executed by the servlet container.

  Was this answer useful?  Yes

ayash81

  • Dec 24th, 2007
 

Servlet resides in a servlet container. The container manages the servlet. When client asks for a request to the web server, the web server asks to the servlet container. The servlet container finds out the appropriate servlet to process the request then the servlet processes the request & responce is sent to the webserver which webserver sends to the client.

ufindanil

  • Jan 3rd, 2008
 

A webserver contains 3 components:

1) HTTP Engine
2) Servlet container
3) JSP container.


Webcontainer = ServletContainer+JSP container.

Whenever a request comes to webserver,webserver maps request to Servlet Container or JSP container) Depneding on servlet or JSP

Servlet Container processes servlet requests.
while JSP container processes JSP requests

  Was this answer useful?  Yes

sampra

  • Mar 4th, 2008
 


Servlet is sever side of the Java pgm. That is executed by the servlet container.
this is ok  

  Was this answer useful?  Yes

A Servlet is that portion of your J2EE application which handles ur requets and where the buisness logic is implemented and depending on the request a response object is generated which is sent back to the client.

A Servlet container is that portion of a Web server which maps URLs to particular servlet it has entry of each and every servlet and so whenever a request somes up it directs that to the particular registered servlet.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions