News

HTML comments will be viewable in the compiled JSP’s HTML source code, and both major browsers make viewing this source easy. JSP comments, on the other hand, are not placed in the HTML document ...
The basic delimiters that contain passages of Java code in a JSP are the opening tag, . ... You will probably want to make any written output, however, compliant with HTML rules.
JSP developers use static HTML, scriptlets (snippets of Java code) and tags to create the page that loads in the Web browser. The tags and scriptlets encapsulate the business logic on the HTML page.
From a coding perspective, the most obvious difference between JSP and servlets is that with servlets you write Java code and then embed client-side markup (like HTML) into that code.