GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  JSP

 Print  |  
Question:  why we need web container to Deploy the servlet or jsp ?

Answer: i.e Why we can not run the application like simple java program


August 08, 2008 05:48:47 #10
 vinayroz J2EE Expert  Member Since: August 2008    Total Comments: 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.
     

 

Back To Question