Overview of JSP

Chapter 6 - The JavaServer Pages (JSP) Technology Model

    Overview of JSP

  • The JavaServer Pages

    JavaServer Pages (JSP) is an technology to Java Servlet which used as mixing of dynamic and static web contents. JSP is a popular Microsoft's Active Server Pages (ASP). JSP, like ASP, provides a way to mix static and dynamic contents.

    The main page is written in regular HTML, while special tags are provided to insert pieces of Java programming codes.This allows the programmers to focus on the business logic, while the web designer to concentrate on the presentation.

    JSP makes the creation and maintenance of dynamic HTML pages much easier than servlet. JSP is more convenience than servlet for presentation.

    In a Model-View-Control (MVC) design, servlets are used for the controller, which involves complex programming logic. JSPs are used for the view, which is used for presentation. The model could be implemented using JavaBeans or Enterprise JavaBeans (EJB) which may interface with a database.

    Advantages of JSP

    • Separation of static and dynamic contents: The dynamic contents are generated programming logic and inserted into the static template. 

    • Reuse of components and tag libraries: The dynamic contents can be provided by re-usable components such as JavaBean, Enterprise JavaBean (EJB) and tag libraries.

    Java is a portability

© 2015 by Learncertification All Rights Reserved. The certification names are the trademarks of their respective owners. Terms & Privacy Policy