I'm not sure if its allowed or not. But I generally do my Java logic
prior to the esql tags. For example.. instead of what you posted I
usually do something like:
<page>
<xsp:logic>
String newvar = null;
if (myvar) {
newvar = "thisval";
} else {
newvar = "thatval";
}
</xslp:logic>
...
<esql:query>
insert into mytable (myvar) values
(<esql:parameter><xsp:expr>newvar</xsp:expr></esql:parameter>)
</esql:query>
...
</page>
Not sure if this answers your question though.
Hope this helps,
- Brent
----- Original Message -----
From: Christina <[EMAIL PROTECTED]>
Date: Thu, 29 Jul 2004 16:33:04 -0700
Subject: [esql] xsp:logic doesn't work inside <esql:query>?
To: [EMAIL PROTECTED]
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]