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 116 | Next

Larry Brown, Marty Hall, and Yaakov Chaikin

"Core Servlets and JavaServer Pages, Volume 2"

For
instance, the following would tell the server to designate .ps files as plain text (text/
plain) rather than as PostScript (application/postscript) when sending
them to clients.

ps
text/plain

For more information on MIME types, see http://www.iana.org/assignments/
media-types/.
Chapter 2 ?–  Controlling Web Application Behavior with web.xml 86
2.14 Configuring JSP Pages
The jsp-config element is used to provide configuration information for the
JSP pages in a Web application. It has two subelements, taglib and
jsp-property-group. Both subelements can appear zero or more times under
the jsp-config element, but any of the taglib subelements must appear before
any of the jsp-property-group subelements. Each one is discussed in the following
subsections.
Locating Tag Library Descriptors
The JSP taglib directive has a required uri attribute that gives the location of a
TLD file relative to the Web application root. The actual name of the TLD file might
change when a new version of the tag library is released, but you might want to avoid
changing all the existing JSP pages. Furthermore, you might want to use a short uri
to keep the taglib directives concise. That??™s where the deployment descriptor??™s
taglib element comes in. It contains two subelements: taglib-uri and
taglib-location. The taglib-uri element should exactly match whatever is
used for the uri attribute of the JSP taglib directive.


Pages:
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128