V
V
Vitaly2014-01-07 16:46:48
Java
Vitaly, 2014-01-07 16:46:48

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

3 answer(s)
R
Ruslan Lopatin, 2014-01-07
@Makute

Velocity Templates?

Y
Yuri Yarosh, 2014-01-07
@d00mko

Take jsoup construct/parse -> pass Elements.
For json, you can take gson .

S
scipe, 2014-01-07
@scipe

Can't you pass a vector to a function? And there already do string.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question