Harshana Dias wrote:Hi,
We can say Servelts are back end right? An interviewer once said "Servlets are not back end and for example Spring, EJB do". Is it right? Even spring MVC internally uses servlets to handle the requests right?
Thank You.
Though I do agree with what Tom has mention ed, I would be loathe to call a Servlet as a back-end. To me, a back-end generally means a component which is either a data-storage mechanism, data-persistence mechanism or if I really want to ignore layered application design, business logic.
I can write business logic in servlets, but the design of servlets themselves forbid the use of business logic to be written inside it. Hence, personally if I am conducting your interview, I would agree with the statement that servlet can not be termed as a backend...
Servlet are at best part of the service layer, to paraphrase Tom and Bear, if you are a web-developer / Web designer where you focus is
only on the user interface then yes Servlets could be thought of as a backend, but if you are talking about an application then Servlets cannot be called as a backend.
Hope that helps.