Monday, July 21, 2014

JSP:A Overview

JavaServer Pages(TM) is a technology specified by Sun Microsystems as a convenient way of generating dynamic content in pages that are output by a Web application (an application running on a Web server). JSP enables us to separate the dynamic content of webpage from static presentation content. A JSP page consists of HTML tags and JSP tags. HTML tags are used to create static page content and JSP tags are used to add dynamic content to web pages.
Why JSP?
Some benefits are following:
1.Web pages created using JSP are portable and can be used across multiple platforms without making any changes.
2.JSP pages are automatically compiled by servers. Developers need to compile JSP pages when the source code of the JSP page is changed.
3.Most important benefit of JSP is the separation of business logic from presentation logic. JavaBeans contain business logic and JSP pages contain presentation logic. This separation makes an application created in JSP more secure and reusable.
4.It easily combines static templates like HTML or XML fragments.
5.Its environment provides compilation of pages automatically.
6.Servlets cannot be accessed directly whereas a JSP page can be accessed directly as a simple HTML page.


No comments:

Copyright © Codingnodes,2014.All Rights Reserved.