WAS v8.5 > Develop applications > Develop web applications > Develop web applications > Develop JSP filesPackages 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 web.xml.
Directory File name 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
Subtopics
- Generated .java files
When the JSP engine’s keepgenerated configuration parameter is set to true, the .java file generated for JSP is retained. The .java file contains information that is useful in debugging.- Generated .java files
When the JSP engine’s keepgenerated configuration parameter is set to true, the .java file generated for JSP (JSP) is retained. The .java file contains information that is useful in debugging.
Related concepts:
JSP class file generation
JSP batch compilation
Global tag libraries (deprecated)
JSP
JSP class loading settings
JSP engine
Reference:
Web container configuration for JSP static file access
JSP class file generation