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
# 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...