GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  JSP
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 301 of 308    Print  
why we need web container to Deploy the servlet or jsp ?
i.e Why we can not run the application like simple java program


  
Total Answers and Comments: 12 Last Update: July 21, 2009     Asked by: 100881 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Ramesh Sukka
 
Servlets and JSP are server side technologies and should be invoked when we receive request from client browser so web container will act as interface between client request and Servlets and jsp in other words Servlets and jsp will reside under web container in order to server client request. hence we required web container in order to invoke Servlets or jsp

Above answer was rated as good by the following members:
shilpad, bino75
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
November 17, 2007 15:46:05   #1  
Ramesh Sukka        

RE: why we need web container to Deploy the servlet or...
Servlets and JSP are server side technologies and should be invoked when we receive request from client browser so web container will act as interface between client request and Servlets and jsp in other words Servlets and jsp will reside under web container in order to server client request. hence we required web container in order to invoke Servlets or jsp
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 18, 2007 01:57:19   #2  
Neha        

RE: why we need web container to Deploy the servlet or...
Servlet and JSP are J2EE web components and Servlet is there to handle the request and give response to clients .. web container is the medium for communication between clients and servlet that is recieving it and sending it to servlet and servlet handle the request and send the response to container that's why web container is essential.
 
Is this answer useful? Yes | No
November 22, 2007 15:33:34   #3  
Ramesh Sukka        

RE: why we need web container to Deploy the servlet or...
Hi Neha

Can't JSP alone handle the web request (without having servlets)? Should only servlet handle web request?

 
Is this answer useful? Yes | No
March 10, 2008 03:58:46   #4  
bharaniprasanth Member Since: February 2008   Contribution: 46    

RE: why we need web container to Deploy the servlet or jsp ?
All of you are wrong...The main purpose of Servlet Container is to provide the resources needed by the servlet while execution...These resource includes RAM allocated Data Object Pools Network connections and many more...Container is like mother of all J2ee components..It nurtures them as long as they are alive...
 
Is this answer useful? Yes | No
March 27, 2008 09:46:58   #5  
ramesh.sukka Member Since: November 2007   Contribution: 11    

RE: why we need web container to Deploy the servlet or jsp ?
Please be carefully while you com to conclusion on other users comment. First try to understand the question here the question is why do we require Web container to deploy servlet or jsp...i think you understood that the question is about purpose of servlet container....However servlet container will pass information to web container and web container will manage the network level services like connection pooling.

Regards
Ramesh Sukka.


 
Is this answer useful? Yes | No
March 30, 2008 09:02:29   #6  
sampra Member Since: February 2008   Contribution: 278    

RE: why we need web container to Deploy the servlet or jsp ?
Servlets and JSP are server side technologies and should be invoked when we receive request from client browser so web container will act as interface between client request and Servlets and jsp in other words Servlets and jsp will reside under web container in order to server client request. hence we required web container in order to invoke Servlets or jsp
 
Is this answer useful? Yes | No
July 04, 2008 07:08:49   #7  
srini235 Member Since: May 2008   Contribution: 5    

RE: why we need web container to Deploy the servlet or jsp ?
can you play a cricket match on a road? if you find the answer for this quaestion you well be able to answer the question the one which host.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
July 28, 2008 07:45:44   #8  
mullangi13 Member Since: March 2007   Contribution: 9    

RE: why we need web container to Deploy the servlet or jsp ?
Compulsorily we need to deploy webresources(Servlet/JSP) in order to execute Servlet/JSP because the web/application server implemented Servlet/JSP APIs. They will not execute in command prompt like standalone applications.
 
Is this answer useful? Yes | No
July 29, 2008 04:12:59   #9  
konnipati.sivaa Member Since: October 2007   Contribution: 6    

RE: why we need web container to Deploy the servlet or jsp ?

We cannot run the application like simple java programs and it will not execute in command prompt like standalone applications. Compulsorily we need to deploy the webresources like Servlet/JSP in webcontainer container is is heart
of the servers .if u send a request to server first container will create a object and assign request .this servlet and JSP were using creation of webapplications this webapplications must deploy the webcontainer.

In order to execute Servlet/JSP because the web/application server implemented Servlet/JSP APIs.


 
Is this answer useful? Yes | No
August 05, 2008 05:48:47   #10  
vinayroz Member Since: August 2008   Contribution: 3    

RE: why we need web container to Deploy the servlet or jsp ?
Servlet and JSP both reside in web container. Whenever client send a request thro web server request is passed to container which in turn invokes the required JSP / Servlet page. Beside this web container imposes all security constraints connection pooling etc to the application.
 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape