cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Washeim <>
Subject SQL and the xspCurrentNode
Date Sun, 25 Jun 2000 16:07:49 GMT
Incidently, for those of you wondering how to do validation with the sql
taglib, try:


            select FIRSTNAME, LASTNAME from TABLE where PASSWORD
='<xsp:expr>callBeanHash( request.getParameter("pwd"))</xsp:expr>'

        <xsp:expr>validate( document, xspCurrentNode , request,


Where the validate member method operates on the current node, ANELEMENT . .
. this works well, since, at run-time, the element's children are populated
in order ...

A nice by-product of this is that you don't have to worry about context . .
. just the node at hand . . .

Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell


View raw message