Powered by Blogger.

Monday 7 September 2015

Learning JSP (Java Server Pages)

No comments :
JAVA SERVER PAGES: - This technology, which is closely coupled with Java servlet technology, enables you to Include Java code snippets and calls to external Java components within the HTML Code (or other markup code, such as XML) of your Web pages. Java Server Pages (JSP) Technology works nicely as a front-end for business logic and dynamic functionality in JavaBeans and Enterprise JavaBeans (EJBs).
JSP code is distinct from other Web scripting code, such as JavaScript, in a Web page. Anything that you can include in a normal HTML page can be included in a JSP page as well.
In a typical scenario for a database application, a JSP page will call a component such as a JavaBean or Enterprise JavaBean, and the bean will directly or indirectly access the database, generally through JDBC. A JSP page is translated into a Java servlet before being executed, and processes HTTP requests and generates responses similarly to any other servlet. JSP technology offers a more convenient way to code the servlet. The translation typically occurs on demand, but sometimes in advance. Furthermore, JSP pages are fully interoperable with servlets—JSP pages can include output from a servlet or forward to a servlet, and servlets can include output from a JSP page or forward to a JSP page.

Here is an example of a simple JSP page