Specifying the Java Server Page compiler and JSP mapping when using an XML file to define your Web application
 Technote (FAQ)
 
Problem
When an XML .webapp file calls a Java™ Server Page (JSP™) file, the JSP specification level and the JSP mapping are unknown. Your XML file requires a tag that specifies the JSP compiler, and tags that specify the JSP mapping.
 
Solution
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
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > JSP
Operating system(s): z/OS
Software version: 4.0.1
Software edition:
Reference #: 1048031
IBM Group: Software Group
Modified date: Jan 3, 2006