SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 120 | Next

Larry Brown, Marty Hall, and Yaakov Chaikin

"Core Servlets and JavaServer Pages, Volume 2"

g.,
true). When set to true,
the server will produce a translation time error if any JSP page in this property
group uses scripting declarations, scriptlets, or scripting expressions. Because
using MVC and the JSP 2.0 EL generally produces cleaner JSP page code than
does explicit JSP scripting, the scripting-invalid element can be used to
enforce this practice across the development team. The default value is false.
is-xml
The is-xml element can be set to either true or false (e.g.,
true
). If set to true, this tells the server that the group of
resources that match the URL pattern of this property group are to be treated
as JSP Documents. A JSP Document is a JSP page that contains only valid
XML code. If the server encounters a resource within this property group that
is not a JSP Document, it will not be able to parse it. A regular JSP page contains
JSP as well as HTML code. Even if your HTML code is not correct (e.g.,
some end tag is missing), the server will still successfully parse it and produce
the Java code to output the erroneous HTML code to the client. You will not
be able to detect your error until the page displays in a browser and you notice
that something is visually wrong. On the other hand, enforcing a set of JSP
pages to contain valid XML avoids this problem. If false, the resources are
2.14 Configuring JSP Pages 89
assumed to not be JSP documents, unless there is another property group that
indicates otherwise.


Pages:
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132