On Mon, 11 Mar 2002, Agrawal, Anuj (Anuj)** CTR ** wrote: > In my code i have <c:set var="x" value="4"/> > > I'd like to be able to access the variable x from within a scriptlet, > something like: > > <% > x = x++; > %> > > and vice versa. > > Is this even possible? I don't see anything in the docs that refer to > such interchangeability. 8(
JSTL doesn't particularly encourage this usage, but it's perfectly possible using older, scriptlet-oriented mechanisms like <jsp:useBean>. Just use a <jsp:useBean> tag after <c:set> to declare your scripting variable. -- Shawn Bayern Author, "JSP Standard Tag Library" http://www.jstlbook.com (coming this spring from Manning Publications) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>