Pages

Wednesday, June 30, 2010

Advantages of JSP

 JSP is a Java-based technology for creating dynamic web pages.

The following are some of the disadvantages of client-side scripting compared to JSP:
  • The user's browser must have scripting enabled, which is not always the case
  • The client-side code can only  be guaranteed to work for all the brower types it has been tested against. It can be a pain to code for multiple browsers
  • Client-side scripts have limited access to server-side resources (eg: databases)
  • Client-side scripting languages are less versatile than Java.
Some of the advantages of JSP over client-side scripting are as follows:
  • JSP enables clean separation of business logic from presentation
  • JSP is not limited to a specific platform, being Java-based and compiled into bytecode.
  • As JSP pages execute on the server it does not matter what browser or configuration the client has.
  • JSP has full access to server-side resources.
For all intents and purposes JSP is a sohpisticated Java Servlet. The main advantage of JSP over Java Servlets is the ease of coding - static text is achieved using HTML tags as opposed to a multitude of println statements.

0 comments:

Post a Comment

 
Powered by Blogger