Chapter 11 - The JSP technology model - advanced topics

This application contains the following components as shown in chapter 11. Clicking on the links below will execute the JSP pages on the server.

JSP Page Description Explained in
area.jsp Shows that the order of declarations is not important Section 11.1.1, Listing 11.1
orderOfScriptlets.jsp Will generate errors. Shows that the order of scriptlets is important Section 11.1.1
initializationOfVariables.jsp Will generate errors. Shows that the initialization of variables is required in scriptlets but not in declarations Section 11.1.1
conditionalTest1.jsp Shows how to write a conditional statement within a scriptlet Section 11.1.2
conditionalTest2.jsp Shows how to write a conditional statement that mixes HTML within multiple scriptlets Section 11.1.2
iterationTest.jsp Shows how to write an iterative statement that mixes HTML within multiple scriptlets Section 11.1.2
escapeSequence.jsp Shows how to write escape sequences in JSP pages Section 11.1.4
implicit.jsp An empty page. Clicking on this link will not generate any output. Open the generated servlet Java file to see the implicitly declared variables. The name of the file will be different on different servers. Tomcat will generate <TOMCAT_HOME>\work\localhost\chapter11\implicit$jsp.java Section 11.2, Listing 11.2
initTest.jsp Shows how to use the config implicit variable to retrieve configuration parameters. See web.xml in the WEB-INF directory of this application and learn how to pass different configuration parameters specifically meant for a JSP page Section 11.2.7, Listing 11.3, 11.4
counter_xml.jsp A JSP document (which is a JSP page written in XML format) that counts the number of times it is visited Section 11.4, Listing 11.5

Important

After you see the results of executing the above JSP pages, take a look at the source files, modify them, and practice the various concepts explained in this chapter.