A
A
Andrey Myvrenik2015-04-02 18:02:31
Java
Andrey Myvrenik, 2015-04-02 18:02:31

What is used for JSP application templates?

I'm learning Java and would like to make a JSP site purely for the sake of experience, but to do everything well that includes templates. At the moment, I'm not sure how this all happens, since all the JSP examples that I've seen either simply embed the Java code directly into the HTML, or specify the HTML code returned to the browser in the HttpServletResponse class object (in the case of a servlet class for processing request).
Both options do not look very convenient, and in principle it is customary in web development to use templates and the MVC pattern. How is it usually organized in real JSP projects?
With the help of a search engine, I found Spring MVC, but I did not find any examples in the public domain to see it in action. If anyone knows an open source JSP project using this framework, links are welcome :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2015-04-02
@gim0

Thymeleaf, for example
In general, if you use some kind of angularjs + services, then jsp is enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question