On Fri, 10 May 2002, Soefara Redzuan wrote:

> As somebody kindly pointed out off list, it should be "if you are comparing 
> strings, you need to use .equals not ==".  He is correct, and this made me 
> realize that I didn't express the question clearly. I was actually trying to 
> confirm whether the output from taglibs can be used within scriptlet 
> expressions.
> 
> <% if (x == %><sql:getColumn colName="X"/><% ) { %>selected<% } %>

You can't mix tags and scriptlets in this fashion.  If you want them to
collaborate, you'll need to do so explicity -- e.g., by storing a scoped
attribute and retrieving it in the scriptlet with PageContext.
findAttribute().

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