Not true, you definitely can wrap logic, including while statements around
esql code.  (Remember, it just turns into more Java code, so...)  You can
even extract your esql and put it into a separate function, as long as you
don't have any XML output from it (you can still do it, but you have to
hack a little).

We use ESQL heavily, and there's no way we'd be able to function if we
couldn't do if blocks and the like around esql code.

-Christopher




Hi Tom,

On Tue, 26 Nov 2002, Tom Place wrote:

>                   class1 = "<esql:get-string column="CLASS"/>";

Try:

 class1 = <esql:get-string column="CLASS"/>;

Although you may like to check that everything else is working: I'm not
sure you can have esql nested within <xsp:logic>, ie:

 while (class1 = null) {
  <esql:connection etc />
 }

... probably won't work.


Hope that helps,

Andrew.







---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to