Thank you for explaining, Shawn. I'm starting to see why people say that JSP
gets unwieldy for complex jobs.
Soefara Redzuan.
>From: Shawn Bayern <[EMAIL PROTECTED]>
>Reply-To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>To: Tag Libraries Users List <[EMAIL PROTECTED]>
>Subject: Re: How to pre-select an option in a pull-down
>Date: Fri, 10 May 2002 00:10:10 -0400 (EDT)
>
>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]>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>