On 10.Aug.2002 -- 11:49 AM, Georg Spar wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi there,
> 
> I'm quite new to ESQL and XSP but I have to solve a specific problem:
> 
> I wrote a login.xsp which is simply the formular for the login
> process...this part works fine. After pressing the login-button you
> are forwarded to login2.xsp.
> This page should just grant or revoke login and if the login is
> correct then send some greetings and put out some  news information
> to the user.

As already pointed out by somebody else, you should use actions
for this. In addition, Apache Cocon comes with an authentication
framework, which you might want to use.

> First part of this still works fine, but if I add the second part to
> the page ( which means I add a second <esql:execute-query>-Tag and so
> on...) there is no output from the database and secondly if you try
> to connect via a interactive shell to the db it stucks and you get a
> timeout.

Have you tried hard-coding the values? In general, nested queries are
no problem. The timeout suggests some locking problem, though. OTOH
both queries operate on different tables. Strange.

Oh, esql supports an ancestor attribute to refer to a column of an
ancestor query when using nested queries. You might want to try that
as well.

Do the logs contain any useful information?

> Here are parts of the login2.xsp: (sorry for the bad formatting, but
> my PGP-signing just change every format you gave your text ;-) )

Looks ok.

> It seems that nested queries are not allowed. Is this correct? Has
> anybody solved a problem like this?

No, nested queries are OK with esql.

        Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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