I was trying this:
In the JSP page inside a scriplet check using
JDBC whether user is valid or invalid.
If user is Invalid Call javascript with alert saying " Invalid User".
but problem I am facing is :javascript can be executed from within a JSP scriptlet code only on the occurence of some event
where as I want script to be called on a particular condition from scripet.
Please advice..