I use SPRING. I need to fill the template in JSP and return it to a variable.

In this case, the operation is performed not in the controller, but in the service.

How to do it right?

  • What does it mean to return it to a variable? - Kadzhaev Marat
  • It means that I have a variable of the string type and I want to save the view in it as a string, so that I can attach it to the mailer for sending as a message. (Tables will be formed in this view) - Maxim Dobrynin

0