Java Server Pages (JSPs) are similar to HTML files, but provide the ability to display dynamic content within Web pages.
JSP technology was developed to separate the development of dynamic Web page content from static HTML page design. The result of this separation means that the page design can change without the need to alter the underlying dynamic content of the page. This is useful in the development life-cycle because the Web page designers do not have to know how to create the dynamic content, but simply have to know where to place the dynamic content within the page.
To facilitate embedding of dynamic content, JSPs use a number of tags that enable the page designer to insert the properties of a JavaBean object and script elements into a JSP file.
Here are some of the advantages of using JSP technology over other methods of dynamic content creation:
Separation of dynamic and static content
This allows for the separation of application logic and web page design, reducing the complexity of web site development and making the site easier to maintain.
Because JSP technology is Java-based, it is platform independent. JSPs can run on any nearly any Web application server. JSPs can be developed on any platform and viewed by any browser because the output of a compiled JSP page is HTML.
Using JavaBeans and Enterprise JavaBeans, JSPs leverage the inherent reusability offered by these technologies. This enables developers to share components with other developers or their client community, which can speed up Web site development.
Scripting and tags