Chapter 2 ?– Controlling Web Application Behavior with web.xml 84
180
There are two small inconsistencies between the session-config method of
setting the session timeout and using the setMaxInactiveInterval method of
HttpSession. First, the value of the session-timeout subelement is specified
in minutes, whereas the value of setMaxInactiveInterval is specified in seconds.
Second, if session-timeout is specified as either 0 or a negative number,
the session will never expire, but only the negative number passed to setMaxInactiveInterval
will accomplish the same result.
2.12 Documenting Web Applications
More and more development environments are starting to provide explicit support
for servlets and JSP. Examples include Borland JBuilder Enterprise Edition, Oracle
JDeveloper, Dreamweaver, MyEclipseIDE, NitroX, Sun Java Studio Creator,
WebLogic Workshop, and others.
A number of the web.xml elements are designed not for the server, but for the
visual development environment. These include icon, display-name, and
description.
icon
The icon element designates the location of either one or two image files that
the GUI tool can use to represent the Web application. A 16 ?— 16 GIF or JPEG
image can be specified with the small-icon element, and a 32 ?— 32 image
can be specified with large-icon. Here is an example:
/WEB-INF/images/small-book.
Pages:
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126