Why is jsp used on the client side?

I am working on a project on spring MVC that has client-side code in jsp instead of javascript and html. I would really appreciate it if you could explain why this is used, not javascript and html. Can this be replaced by javascript and html without loss of functionality

+4
source share
1 answer

JSP runs on the server side and displays an HTML page (including embedded javascript and css). This way, your browser runs Javascript and HTML code, not JSP code.

You can verify this using the tools of your browser’s developer, you will not find JSP code there.

, Javascript/HTML. AJAX , .

+2

Source: https://habr.com/ru/post/1619304/


All Articles