I am a beginner in programming. Since I investigated the reason for separating Servlet and JSP, I will output only the rough contents.
Basically, logic is written in ** Servlet **, and appearance part (HTML etc.) is written in ** JSP *. .. As an image, - Servlet → Write ordinary java code. * ・ * JSP → Mostly HTML and other visual code, but java code is included as needed. *
-When developing with multiple people, conflicts will not occur if the person in charge is divided into separate files. -The readability of the source code is improved. Etc ........
As I learned during my research, when JSP is also working, it is finally converted to Servlet by the Servlet container. For details, see the URL below.
** [Reference source] ** IT Glossary that makes you feel like you understand even if you don't understand it
Recommended Posts