Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web applications > Develop web applications > Develop JSP files


Packages and directories for generated .java and .class files

By default, the .java files for all JSP files are generated with the package statement, package com.ibm._jsp;. The JSP engine's class loader knows how to load JSP classes when they are all in the same package. The .java files are located in the filesystem within a directory structure mirroring the JSP source directory structure.

If the JSP engine configuration parameter useFullPackageNames is set to true, the .java files are generated with the package statement

Package _ibmjsp.
<directory structure in which the jsp is located>;
The usage of full package names enables the configuration of a JSP as a servlet in the web.xml file. Refer to the JSP class loading settings topic for more information. The table below gives examples of packages and directory structures for generated .java and .class files.

Packages and directory structures for generated .java and .class files. Examples of packages and directory structures for generated .java and .class files.

  Java package Location of .java or .class files in file system
JSP file default useFullPackageNames=true default useFullPackageNames=true
/myJsp.jsp com.ibm._jsp _ibmjsp / /_ibmjsp
/jspFiles/jspOne.jsp com.ibm._jsp _ibmjsp.jspFiles /jspFiles /_ibmjsp/jspFiles
/dir with spaces/jspTwo.jsp com.ibm._jsp _ibmjsp.dir_20_with_20_spaces /dir with spaces /_ibmjsp/dir_20_with_20_spaces


Related


Generated .java files
JSP
JSP class loading settings
JSP engine


Related


JSP class file generation

+

Search Tips   |   Advanced Search