Compile Time Includes

Q1:Why won't my included file show up?
If you entered the correct filename and the JSP engine didn't report an error while including the file, chances are that the place you included the file causes it to not show up. For example, if you include some tags within the <head> tag, they probably won't show up. Likewise, if you include the file within an HTML comment it won't show up. Choose View Source in your browser and see what's being sent from your JSP.
Q2:Why doesn't my JSP recompile when I change the contents of the included file?
The JSP specification doesn't require JSP engines to check included files to see if they have changed. Yours probably doesn't.

Runtime Includes

Q1:My Java Server Pages have been ...

Get Special Edition Using Java™ 2 Enterprise Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.