Ted Vinke wrote:
> The question: is there an easy way to alter this query so I can match on 
> name? I do not know the nodenumber of the context upfront to compare 
> with and I was hoping I didn't have to add another query inside for 
> performance-reasons.

Perhaps you can assign an alias to the context, and use that in the
value attribute. Since you hardcoded the name, you can as well hard-code
the alias. The JSP would remain unchanged,  and the performance penalty
would be very little, because the node will be fetched from memory
cache by it's alias.

Atctually that may be faster than a deeper path, because chances are
that that would also make the query slower.

Michiel


-- 
Michiel Meeuwissen                  mihxil'
Mediacentrum 140 H'sum                [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to