This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
If you use a servlet to access a backend database, then yes, it is a middleware between the HTML front end and database backend. Servlets could be used to implement standalone applications. But most of the time, there is some sort of backend data source and the servlet controls the logic to store and present the data. In this case, the servlet is a middleware. The same for RMI.
Originally posted by Michael Yuan: If you use a servlet to access a backend database, then yes, it is a middleware between the HTML front end and database backend. Servlets could be used to implement standalone applications. But most of the time, there is some sort of backend data source and the servlet controls the logic to store and present the data. In this case, the servlet is a middleware. The same for RMI.