Thursday, September 27, 2007

What is Javascript and how it is different from Java Server pages (JSP)

Javascript is a scripting language and it is not code in Java. It is primarily used to write functions that are embedded in HTML. It is primarily used to do the following things
1. On the client side it can validate forms before submitting it to the server.
2. Opening up a new window with programmatically controlling the size.

JavaServerPages on the other hand are HTML+ Java code. The are written instead of servlets to dynamically render HTML pages. Instead of writing many println command to write html, we insert tags for java code in the html code. This creates a Java Server page.


Powered by ScribeFire.

No comments: