in addition to Fabios good points you can try removing the <csp:query> tag.
You can use something like that
<sript language=sql name=Tabela>
SELECT ID,Titulo,Descricao,URL,NivelAcesso->ID As NAID,NivelAcesso->Descricao As
NAD,MenuPai->Descricao As MPD FROM LinkMenu
WHERE (MenuPai = #(%request.Get("MenuPai"))#)
ORDER BY Titulo, MenuPai, NivelAcesso
</script>
instead. I don't know why you use %ID and "" for some fields in your Query!?!?! I also
added some alias to avoid
name conflicts.
Looping over the result-set is the same.
For testing purposes you can also add
<server>
Set %response.TraceDump=1
</server>
before </body> to ensure and control the values in your %session- and %request-data.
What cache versions/releases are running on the win- and linux-system ?
Thanks and Regards...
Bernd!