HTML and CSS Reference
In-Depth Information
Table 2-1. ( continued )
Implicit Object
Representation
requestScope
request scoped map (the request attributes map).
Resource
resource reference.
Session
HttpSession if you are working on a Servlet container or the PortletSession if you are
working on a Portlet container.
sessionScope
session scoped map (the session attributes map).
View
UIViewRoot for the current view.
viewScope
view scoped map (the view attributes map).
The following example in Listing 2-18 shows how to show the request header information using the #{header}
value expression.
Listing 2-18. Displaying the Request Header Information Using the Header Implicit Object
<table border="1">
<th>Key</th>
<th>Value</th>
<c:forEach items="#{header}" var="header">
<tr>
<td>#{header.key}</td>
<td>#{header.value}</td>
</tr>
</c:forEach>
</table>
The #{header} expression returns a map that represents the HTTP headers, and using the <c:forEach> JSTL tag,
the header keys and values are displayed. Figure 2-2 shows the output of Listing 2-18.
Figure 2-2. The HTTP headers information
 
Search WWH ::




Custom Search