tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Soefara Redzuan" <soefararedz...@hotmail.com>
Subject Re: c:set and scriptlets
Date Mon, 11 Mar 2002 16:13:32 GMT
> > 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:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message