jsp is server side language so it is run on the java
enabled server or any server like apatchi tomacat.
when u run the jsp page then every time page will refreshed
by the server
whre as Java scrip is a language which is used to perform
the validating task of the project it won't be refreshed by
the server rather than browser.