ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/program/jspproc.htm

58 lines
3.6 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>JSP processor</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="jspproc"></a>JSP processor</h4>
<p>When you configure your Web server instance to work with the WebSphere Application Server - Express for iSeries product, the Web server configuration is set to pass HTTP requests for JSP files (files with the extension .jsp) to WebSphere Application Server - Express. The JSP processor creates and compiles a servlet for each JSP file.</p>
<p>These following points apply to the JSP processor that is implemented in WebSphere Application Server - Express:</p>
<ul>
<li><p>The servlet that implements the JSP processor is org.apache.jasper.runtime.JspServlet.</p></li>
<li><p>WebSphere Application Server - Express places the generated files in a temp directory under the WebSphere instance. For example, the WebSphere instance <em>myInstance</em> stores the generated files in </p>
<pre>/QIBM/UserData/WebASE51/ASE/myInstance/temp/<em>node_name</em>/
<em>application_server</em>/<em>enterprise_app</em>/<em>web_module</em></pre>
<p>where:</p>
<ul>
<li><em>node_name</em> is the name of the iSeries server or partition on which your WebSphere Application Server - Express instance is running</li>
<li><em>application_server</em> is the name of your WebSphere Application Server - Express server</li>
<li><em>enterprise_app</em> is the name of the enterprise application to which the JSP file belongs</li>
<li><em>web_module</em> is the Web module that contains your JSP file.</li>
</ul>
<p><strong>Note:</strong> This path has been wrapped for display purposes. Enter it as one path.</p></li>
<li><p>When the processor generates the servlet, two or three files are created, depending on the JSP processor settings:</p>
<ul>
<li><p><strong>.class file</strong>
<br>This is the compiled servlet. This file is always created and kept.</p></li>
<li><p><strong>.java file</strong>
<br>This is the generated source (.java) file. This file is created during the compilation of a JSP page, but the processor only keeps the file if it is told to do so. You can retain the .java file by setting an initialization parameter (for the JSP attributes) called <strong>keepgenerated</strong> to a value of <tt>true</tt>. This setting leaves the generated .java file in the /QIBM/UserData/WebASE51/ASE/<em>instance</em>/temp/<em>node_name</em>/
<em>application_server</em>/<em>enterprise_app</em>/<em>web_module</em> directory. By default this value is not specified as an init parameter, and thus the default behavior is to <strong>not</strong> keep the generated .java file.</p></li>
<li><p><strong>.dat file</strong>
<br>This contains the static (HTML code and text content) part of the original JSP file.</p></li>
</ul></li>
<li><p><strong>workingDir</strong> is an init() parameter that is specified by default. However, this parameter is ignored by the JSP processor.</p></li>
</ul>
<p><strong>Keeping generated Java source files</strong></p>
<p>The JSP processor generates a Java source file for each JSP file. By default, this file is deleted immediately. It is recommended that you keep the generated .java file for debugging purposes only. It is safer and more efficient to configure the JSP processor to delete generated .java files in a production environment.</p>
</body>
</html>