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.3: Java Server Page attributes

4.2.2.2.3: Java Server Page attributes

Use the WebSphere Application Assembly Tool (AAT) to set the following Java Server Page attributes. The JSP attributes are stored in the IBM extensions document for Web module, ibm-web-ext.xmi.

JSP file attribute names JSP file attribute values
(Default values are in bold text)
Purpose
keepgenerated true | false If true, the generated .java file will be kept. If the value is false, the .java file is not saved.
dosetattribute true | false By default, JSP files using the "usebean" tag with Scope="session" do not always work properly when session persistence is enabled.
scratchdir product_installation_root\temp Set scratchdir to a valid drive and directory which the JSP engine will use to store the generated .class and .java files.
jsp.repeatTag.ignoreException true | false In previous releases, the <tsx:repeat> tag would iterate until one of the following conditions was met:
  1. The end value was reached
  2. An ArrayIndexOutofBoundsException was thrown
Other types of exceptions were caught but not thrown, which could result in numerous errors being returned to the browser.

In version 4.0, the default behavior will now stop the repeat tag iterations when any exception is thrown.

To reinstate the old behavior, set this parameter's value to true.

defaultEncoding Name of the desired character set.
The value of the system property file.encoding is the default.
Use this parameter to set the encoding for JSP pages. If a JSP page contains a contentType directive that defines an alternative character set, that character set is used instead of the defaultEncoding parameter's value.

The order of precedence is:

  1. The JSP page's contentType directive's charset.
  2. The defaultEncoding parameter's value.
  3. The System property file.encoding value
  4. ISO-8859-1
Go to previous article: JSP processors Go to next article: Batch compiling JSP files

 

 
Go to previous article: JSP processors Go to next article: Batch compiling JSP files