InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
4.2.2.2: JSP support and environment in WebSphere >
4.2.2.2.2: JSP processors

4.2.2.2.2: JSP processors

When you install the Application Server product on a Web server, the Web server configuration is set to pass HTTP requests for JSP files (files with the extension .jsp) to the Application Server product.

The JSP processor creates and compiles a servlet from each JSP file. The processor produces these files for each JSP file:

  • .java file, which contains the Java language code for the servlet
  • .class file, which is the compiled servlet
  • .dat file, which contains the static part of the original jsp file

The JSP processor puts the .java, the .class file, and the .dat file in the following path:

 <product_installation_root>\temp\<hostname>\<servername>\<webmodulename>

Like all servlets, a servlet generated from a JSP file extends javax.servlet.http.HttpServlet. The servlet Java code contains import statements for the necessary classes and a package statement, if the servlet class is part of a package.

If the JSP file contains JSP syntax (such as directives and scriptlets), the JSP processor converts the JSP syntax to the equivalent Java code. If the JSP file contains HTML tags, the processor adds Java code so that the servlet outputs the HTML character by character.

Go to previous article: JSP support and environment in WebSphere Go to next article: Java Server Page attributes

 

 
Go to previous article: JSP support and environment in WebSphere Go to next article: Java Server Page attributes