If you see the javascript function then your c:otherwise tag is doing exactly what it's supposed to do.
Merely printing it to the page is not going to cause it to be executed.
Instead of printing a function, why not write the value of a variable that can be read from the document's onload event.
Since you only need one
test, you could probably do away with the c:choose and just use a c:if tag that changes the resultsEmpty to true.
Either way, your issue isn't with the c:otherwise tag (or JSP for that matter), it's with Javascript.
If you need any more help with Javascript, let me know and I'll move this
thread to our HTML/Javascript forum.
[ June 27, 2007: Message edited by: Ben Souther ]