When a servlet, JSP file or bean calls a JSP file, the JSP
compiler level and the JSP mapping are understood because the JSP
specification level and the JSP mapping are defined in the was.conf file.
However, when an XML .webapp file calls a JSP file, the JSP specification
level and the JSP mapping are unknown. Your XML file requires a tag that
specifies the correct JSP compiler for your level of the Application
Server, and tags that specify the JSP mapping.
Example:
<?xml version="1.0"?>
<webapp>
<servlet>
<name>jsp11</name>
<description>JSP 1.1 support servlet</description>
<code>org.apache.jasper.runtime.JspServlet</code>
<servlet-path>*.jsp</servlet-path>
<servlet-path>*.jsv</servlet-path>
<servlet-path>*.jsw</servlet-path>
<autostart>true</autostart>
</servlet>
</webapp>
JSP specification with its corresponding
compiler
JSP Level
|
JSP Compiler
|
1.1
|
org.apache.jasper.runtime.JspServlet
|
|