1)how is servlet extends the capabilities of web server?
Printable View
1)how is servlet extends the capabilities of web server?
provides an environment for running server-side programs
WHo is responsible for providing the environment ?I am new in Java ,so kindly guide me...
A JSP engine.
Server handles request coming from browser and reply appropriately with response.
But, what do we mean by appropriate..?
So, that is why the Servlet there is.
Server passes the request to Servlet and now it can prepare appropriate response to send back.
So, Servlet operates some special things on request, response.
Now, we can say Servlet extends Server.
Hi friend,
web server capabilities are limited, i.e it can take the request from client and it can send the response to the client.
But this is not sufficient in web-application development, i.e some processing at server side based on the request is required ,server can't do this step.(ex validations, db connection...)
so we shod extend the functionality of server,that's why we moved to server side technologies(ex jsp,servlets,asp,python).
I think now u got the point.
Thanks,
nAvEEn.M