JSP Introduction

  • Java Server Pages are HTML pages embedded with snippets of Java code.
  • A simplified, fast way to create dynamic web content
  • A JSP is a complied to a Java Servlet automatically by the Servlet container, it is then cached
  • A Java Servlet is a Java program that is run on the server
  • There are Java classes for retrieving HTTP requests and returning HTTP responses
  • A Java Servlet must return an entire HTML page, so all tuning of the page must be done in a Java program that needs to be re-compiled
  • Use HTML and XML tags to design the page and JSP scriplet tags to generate dynamic content (Easier for separation between designer & developer)
  • use Java Beans and useful built-in objects for more convinience