On Fri, 3 May 2002, Carole E. Mah wrote:

> How does one print taglib variables from inside a scriptlet?
> Is it possible?
> 
> e.g. the following does not work -- it returns the error
>  "Undefined variable: test"

You need to retrieve the scoped variable manually, for it isn't a
scripting variable.  For instance:

    pageContext.findAttribute("test")

Note that this syntax is indeed inconvenient, which is why the JSTL EL is
useful in the first place.  :-)

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