Web Application WAR file -> General tabbed pane -> Sun-specific Settings button -> Sun-specific Settings dialog box -> Select Servlet/JSP Settings from the View drop-down list
In the Sun-specific Settings -Servlet/ dialog box, you can specify the Servlet/JSP configuration information.
In the Servlet/JSP Class Loader pane, specify the class loader configuration information.
In the ClassLoader Properties section, you can add or delete the prefedined
ClassLoader properties for the servlet.
Name | Value |
---|---|
extra-class-path | Specifies additional classpath settings for this web module. | delegate | If true, the web module follows the standard classloader
delegation model and delegates to its parent classloader
first before looking in the local classloader. You must set
this to true for a web application that accesses EJB components
or that acts as a web service client or endpoint.
If false, the web module follows the delegation model specified in the Servlet specification and looks in its classloader before looking in the parent classloader. It’s safe to set this to false only for a web module that does not interact with any other modules. Default value is true.NOTE: If the delegate element is set to false, the classloader delegation behavior complies with the Servlet 2.3 specification, section 9.7.2. If set to its default value of true, classes and resources residing in container-wide library JAR files are loaded in preference to classes and resources packaged within the WAR file. Portable programs that use this element should not be packaged with any classes or interfaces that are a part of the J2EE specification. The behavior of a program that includes such classes or interfaces in its WAR file is undefined. |
dynamic-reload-interval | Specifies the frequency, in seconds, at which the dynamic class reloading feature is invoked. The server checks for changes for every specified dynamic reload interval and redeploys the application, automatically and dynamically, with the changes. |
In the JSP configuration section of the screen, you can add or delete the predefined properties for the JSP.
In the Extra Properties section of the screen, you can add or delete the predefined properties for the JSP.
< In the Parameter Encoding pane you can define the encoding for the generated
Java servlet. This encoding is passed to the Java compiler used to compile the servlet as well. By default, the web container tries to use UTF8.
For information on encodings you can use, see:
http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html
Form Hint Field: Enter the name of the hidden field in the form that
specifies the encoding. The default is j_encoding.
Name
Value
checkInterval
If development is false and reloading is true, background compiles are
enabled. checkInterval is the time in seconds between checks to see if a JSP
page needs to be recompiled. The default value in seconds in 300.
compiler
The compiler Ant should use to compile the JSP. See Ant documentation
for more information. The default compiler is javac.
classdebuginfo
The flag that specifies whether the generated Java servlets should be compiled with the debug option set
(-g for javac).
classpath
The classpath that will be passed to the Java compiler when it is invoked to compile the generated servlet to a class file.
The classpath is created dynamically based on the current web application.
development
Check if Jasper is used in the development mode. The default value is
true.
enablePooling
Determines whether tag handler pooling is enabled. The default value is
true.
fork
If true, Ant forks the compilation of JSPs so that a separate JVM is
used for JSP page compilation from the one that is running the application
server. The default value is true.
ieClassId
The Java plugin COM class ID for Internet Explorer. Its value is used by the <jsp:plugin> tags.
javaEncoding
The encoding for the generated Java servlet. This encoding is passed to the Java compiler
used to compile the servlet as well. By default, the web container tries to use UTF8.
If that fails, it tries to use the javaEncoding value.
For encodings, see: http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html
keepgenerated
The flag that specifies whether the generated Java servlet sources for each page should be kept or deleted.
If set to true, the generated Java files are kept. If false, the Java files are deleted.
By default, the java code is not deleted in order to aid debugging.
logVerbosityLevel
Log the level of detailed messages to be produced by the servlet.
Increasing levels cause the generation of more messages. Valid values are FATAL,
ERROR, WARNING, INFORMATION, and DEBUG. The default value is WARNING.
mappedfile
The flag that specifies whether the container should generate static content with one print statement per input line.
If set to true, generates separate write calls for each HTML line and adds comments that describe
the location of each line in the JSP file. By default, all adjacent write calls are combined and no location
comments are generated.
reloading
Specifies if Jasper should check for modified JSPs. The default value is
true.
suppressSmap
Specifies if the SMAP info for JSR45 debugging be suppressed. The
default value is false.
dumpSmpa
Specifies if the SMAP information for JSR45 debugging be dumped to
a file. The default value is true.
scratchdir
The working directory to use when compiling JSP pages. It also stores all the generated code.
tagPoolMaxSize
Specify the tag handler pool size.
xpoweredBy
Determines whether the X-Powered-By response header is added by
generated servlet.
Define Extra Properties
Name
Value
tempdir
The temporary directory for use by this web module. This value is used to construct the value of the
javax.servlet.context.tempdir context attribute. Compiled JSPs are also placed in this directory.
singleThreadedServletPoolSize
The number of threads in the thread pool for single threaded servlets.
Parameter Encoding
Legal Notices