6.1 A BETTER WAY
Rather than focusing on the data with presentation methods supplementing it, there should be a better way to present dynamic data. Imagine the inverse way—with presentation (view) as the focus and then the processing logic supplementing it (the view), rather than the other way round. This is the core approach to JSP. JSP standing for Java Server Pages, enables mixing of HTML code with content that is dynamically generated by server code, like Servlet. While Servlets have HTML-like syntax embedded within Java code, the JSP has java-like code embedded within HTML. By now the reader would have realized that embedding HTML within the server side, like in Servlets, forces the creation of creative stuff in the form of dynamic web pages ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access