On Mon, 20 May 2002, Paul DuBois wrote:

> I'm curious whether it's possible to use dotted names as lvalues in
> JSTL tags.

I assume you mean, "can you assign to them?"  Not as such.  But <c:set>
now lets you perform the assignment you're looking for.  Instead of this:

> <c:set var="sessionScope.count" value="${sessionScope.count + 1}" />

you would write this:

  <c:set
     target="${sessionScope}"
     property="count"
     value="${sessionScope.count + 1}">

You're right that the 'dot notation' works only in ${...}.

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