Christina,

I can't explain why that doesn't work, but I've never tried it. You could do it
this way, though:

<esql:query>
   SELECT foo FROM bar
   WHERE baz = <esql:parameter><xsp:expr>( (test) ? "quux" : blort.someMethod()
)</xsp:expr></esql:parameter>
</esql:query>

In other words, replace the "if (test)" statement with the equivalent "(test) ?
expr1 : expr2" expression. <xsp:expr> should work here, even though <xsp:logic>
doesn't.

</Jeff>



                                                                                       
                                    
                      "Christina"                                                      
                                    
                      <[EMAIL PROTECTED]        To:       <[EMAIL PROTECTED]>          
                               
                      il.com>                  cc:                                     
                                    
                                               Subject:  [esql] xsp:logic doesn't work 
inside <esql:query>?                
                      07/29/2004 07:33                                                 
                                    
                      PM                                                               
                                    
                      Please respond to                                                
                                    
                      users                                                            
                                    
                                                                                       
                                    
                                                                                       
                                    




I tried to use if () inside <esql:query> like this:
....
<esql:query>
    <xsp:logic>
            if (true) {
                <esql:parameter>...</esql:parameter>
            }
    </xsp:logic>
</esql:query>
....
but every time there is error message on this "if", it is ok if I delete
everything before and after the nested <xsp:logic> tag.
So <xsp:logic> cannot work inside of <esql:query>? or I did something wrong?
Thanks!





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

Reply via email to