JBoss, a division of Red HatJBoss.org - Community driven.
Links
Docs Home
Config Ref. Home
Top Level Element
Web SubSystem
Connectors
HTTP
AJP
HTTPS
Native
Configuration elements
static-resources
jsp-configuration
Virtual Hosts
virtual-server
Executors
Executor
Printer Friendly Version

The jsp-configuration element

Introduction

The jsp-configuration describes how the JSP container is working.

There should be only one jsp-configuration element inside an subsystem=web element.

Attributes

Common Attributes

The jsp-configuration supports the following attributes:

AttributeDescription
development

Enable development mode. (see modification-test-interval too) The default value is false.

disabled

Tell the container that the jsp-configuration container should be disabled. The default value is false.

keep-generated

keep the generated Java source code for each page. The default value is true.

trim-spaces

Remove useless spaces from the response. The default value is false.

tag-pooling

tag handler instances are pooled and reused. The default value is true.

mapped-file

static content are generated with one print statement per input line, to ease debugging. The default value is true.

check-interval

The time in seconds between checks to see if a JSP page needs to be recompiled. The default value is 0 checks are dissabled.

modification-test-interval

The time in seconds a changed JSP aged before being recompiled. The default value is 4.

recompile-on-fail

Force a recompilation attempt on next access if compilation failed. The default value is false.

smap

generate JSR 045 SMAP Files. The default value is true.

dump-smap

dump the SMAP info for JSR 045 debugging to a file The default value is false.

generate-strings-as-char-arrays

generate text strings as char arrays. The default value is false.

error-on-use-bean-invalid-class-attribute

cause a compilation error when the bean can't be instantiated. The default value is false.

scratch-dir

scratch directory to use when compiling JSP pages. The default value is work.

source-vm

JDK version the source files are compatible with. The default value is 1.5.

target-vm

JDK version the class files are compatible with. The default value is 1.5.

java-encoding

Java file encoding to use for generating java source files. The default value is UTF8.

x-powered-by

Generated servlet adds X-Powered-By response header. The default value is true.

display-source-fragment

include a source fragment in exception messages. The default value is true.