JavaServer Pages




JavaServer Pages

JavaServer Pages is an extension of the servlet component model that simplifies the process of generating HTML dynamically. JSP essentially allows you to incorporate Java directly into an HTML page as a scripting language. In Java EE, the Java code in a JSP page can access the JNDI ENC, just like the code in a servlet, and can even use all the injection annotations discussed in Chapter 14. In fact, JSP pages (text documents) are translated and compiled into Java servlets, which are then run in a web server just like any other servletsome servers do the compilation automatically at runtime. You can also use JSP to generate XML documents dynamically. If you want to learn more about JSP, take a look at JavaServer Pages (O'Reilly).