Model-View-Controller (MVC) is a pattern used in software engineering to separate the application logic from the user interface. As the name implies, the MVC pattern has three layers. The model defines the business layer of the application, the view defines the presentation layer of the application, and the controller manages the flow of the application. […]
Continue reading >>In our previous post we saw a Java Servlet in action. Servlets make it easy for us to access parameters, cookies, and other resources on the server. But at the moment of generating a response (HTML), it can become tedious quickly. JavaServer Pages (JSP) is the solution for this problem. A JSP page allows us […]
Continue reading >>No matter how complex a web page looks, the process is always the same: the browser sends a request to the server, and the server sends a response back. It’s part of the HTTP protocol. Even AJAX uses the same principle. A servlet is a Java class capable of processing a request and generating a […]
Continue reading >>