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

Larry Brown, Marty Hall, and Yaakov Chaikin

"Core Servlets and JavaServer Pages, Volume 2"

gif
/WEB-INF/images/tome.jpg

Because these images are only used by the IDEs, they are never served to the
client (e.g., a browser), you are allowed to store them inside the protected
WEB-INF directory.
display-name
The display-name element provides a name that the GUI tools might use to
label this particular Web application. Here is an example:
Rare Books
2.13 Associating Files with MIME Types 85
description
The description element provides explanatory text, as shown here:

This Web application represents the store developed for
rare-books.com, an online bookstore specializing in rare
and limited-edition books.

2.13 Associating Files with
MIME Types
Servers typically have a way for Webmasters to associate file extensions with media
types. So, for example, a file named mom.jpg would automatically be given a MIME
type of image/jpeg. However, suppose that your Web application has unusual files
that you want to guarantee are assigned a certain MIME type when sent to clients.
The mime-mapping element, with extension and mime-type subelements, can
provide this guarantee. For example, the following code instructs the server to assign
a MIME type of application/x-fubar to all files that end in .foo.

foo
application/x-fubar

Or, perhaps your Web application wants to override standard mappings.


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