0

Been referring to murach's java servlets and jsp book, there's a line which says ->

For a static web page, the http request includes the name of the html file that's requested

Just wanted to understand if the case with dynamic web pages is entirely different? Is the HTML file name not included there in the requested?

Dawson Smith
  • 473
  • 1
  • 6
  • 15
  • 1
    For dynamically generated pages, there usually _is no_ html file. – tkausl Sep 08 '21 at 05:24
  • what happens in their case? – Dawson Smith Sep 08 '21 at 05:24
  • 1
    in this case the server elaborates the request and create an html page (or something else, e.g a pdf) which does not exists as file in the server, it's just a stream sent to the browser containing the html to display – Gian Paolo Sep 08 '21 at 05:45
  • 1
    by the way, the server could elaborate a stream also for a something.html instead of returning an existing file. It's just a convention, the simplest one, to serve the request with the existing file (or return a 404 error if it does not exists) – Gian Paolo Sep 08 '21 at 05:49

0 Answers0