Answer the question
In order to leave comments, you need to log in
How is jquery used in javaEE projects?
Situation:
let's say I want to display some table on a page in my project. For this, a ready-made jquery script will be used. But the data, I want to put into it from Java.
How to connect these things? How can I create or attach to this object (table) from java and pass headers, data, etc? I would be grateful for an example or a link to it!
Answer the question
In order to leave comments, you need to log in
To begin with, it is worth understanding that Java and JavaScript are completely different things, like "round" and "dog", for example.
And so, everything is simple, put data on the page in JSON, for example, then use it from JavaScript.
The easiest way, in the forehead:
stackoverflow.com/questions/4803906/reading-a-jsp-...
but instead of Hello World, look for how to turn a JAVA object into JSON and paste it there directly as a string.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question