interaction between jsp and java script

Hello SirIs it possible to exchange data between jsp and javascript functions ?Actually i want to execute some javascript functions if some request.getAttribute("uname") is not present in jsp pages.Please give me some advise , how to do this ?Thank u in advance
[296 byte] By [chahalkhushwindera] at [2007-11-27 8:30:49]
# 1

Dont know for sure , this will work or not..

function xyz(){

var x =<% request.getAttribute("uname")%>

if(x =="") some action.

}

call this function onload of body or some other trigger...

R@njita at 2007-7-12 20:26:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...