Doubt in basic servlet lectures from Murich book's servlet book
posted 2 years ago
I was studying murach servlet and jsp book and i got some doubt in it.
when a web server receives the request for dynamic web page the server passes the request to web application
then application receives the request and generates a response usually a html page and web server wraps this response
html page in http an response and sends it back to the browser
From above line can it be inferred whenever request for static web page comes then web server directly renders that
to browser as http response and if request for dynamic web page comes then it is passed to web application then then
application receives the request and generates a response usually a html page and web server wraps this response
html page in http an response and sends it back to the browser.
tell me whether my above inference is correct or wrong?
And next doubt of mine is:
How server is going to know whether request made refers to static or dynamic web page?
I think based upon the URL pattern mentioned in the deployment descriptor server is going to understand if the request
is dynamic then to which servlet it should be passed for processing.
please do read my understanding that i have written above and correct it if i'm wrong and if possible brief entire sequence of operation in this context