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

Does "older" mean that scriptlet-oriented mechanisms should not be used and 
we should use JSTL if possible ?

Soefara.


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

Reply via email to