On Thu, 25 Apr 2002, Matt Raible wrote:

> With the beta 2 release, the following doesn't work:
> 
> <c:out value="${request.myAttribute}"/>
> 
> However, this does:
> 
> <c:out value="${myAttribute}"/>
> 
> Is this "as designed" and if so, is this an efficient way - I'd rather
> search the specific scope, probably more efficient.

The short answer is "request was changed to requestScope".

The longer answer is that you really should, in most cases, treat all
scopes as a single namespace.  But there are situations where you only
want to retrieve a value if it comes from a specific scope -- hence the
top-level objects.  They've been renamed to pageScope, requestScope,
sessionScope, and applicationScope, as described in the PFD spec.

-- 
Shawn Bayern
"JSP Standard Tag Library"   http://www.jstlbook.com
(coming this summer from Manning Publications)


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to