Java-Web Connections


Java (such as servlets, JSP, and applets) allows the web pages to execute Java programs directly. However, they are considered as outdated technologies and no longer favored by developers in these days. Instead, Spring Framework is leading the market for Java developers. None of them will be covered in detail in this course.

Servlets
Servlets are the Java programs that runs on the Java-enabled web server or application server. They are used to handle the request obtained from the web server, process the request, produce the response, then send response back to the web server.

JSP (JavaServer Pages)
It is a technology based on Java for developing dynamic web pages and web sites. JavaServer Pages are normal HTML with Java code pieces embedded in them, similar to PHP and ASP. A JSP compiler is used to generate servlets from the JSP page.

Java Applets
A Java applet is a small dynamic Java program that can be transferred via the Internet and run by a Java-compatible web browser. The main difference between Java-based applications and applets is that applets are typically executed in an AppletViewer or Java-compatible web browser (many modern browsers are not Java-compatible).

Spring Framework
The Spring Framework is a comprehensive tool for supporting applications using Java programming language. Many web applications and other technologies use Java, and the Spring Framework provides an array of resources for integrating applications, streamlining code and generally promoting more efficient development strategies.




      “Never laugh at live dragons.”    
      ― J.R.R. Tolkien