What is JSPs

by Dinesh 2012-07-23 17:06:32

<h3>What is JSPs?</h3>Java Server Pages (JSPs) are a way of integrating server-side functionality with HTML element tags to create dynamic content for the Web while separating content from display in a J2EE world. Most developers know by now that HTML pages are static files that can be edited and saved on a serverâs file system. JSPs are a way of generating servlets on the fly. JSPs are calculated HTML pages that are generated at runtime by a servlet, which is in turn generated by a JSP. JSP tags are formatted much like HTML tags, but are actually references to servlet functionality that generates an HTML page at runtime, before it is sent to a browser.

JSPs can therefore be described as a meta-language for developing servlets without having to code, debug, and compile Java source code then deploy servlet class files. All a developer needs is an HTML editor tool and a reference describing any necessary JSP tagâs syntax. Instead of saving the HTML page as an .htm page, a developer saves the page as a .jsp page, and deploys the page to a JSP-compatible Web server. The Web server creates and compiles a servlet based on tags in the .jsp page. When the .jsp page is called on the Web server, the servlet runs. The servlet output usually generates a static HTML page containing dynamic content that was added to the page at runtime.

You must LOGIN to add comments