Answer the question
In order to leave comments, you need to log in
Java. Serializing an object to html
Good day.
The problem is the following - you need to submit an output html framework in some form to the input of the function, with parameters and other things, to get a valid string at the output. As I imagine - submit, for example, in json, compose the view in html in the right order, then closing tags at the output - glue everything into a string. But this is quite a crutch, there is no jsonObject in spring and other unpleasant moments. Are there ready-made or less perverted solutions to this problem?
Answer the question
In order to leave comments, you need to log in
Take jsoup construct/parse -> pass Elements.
For json, you can take gson .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question