JavaFX invoking java methods using JavaScript and displaying java method return in html tag

Viewed 19

How to get a return from a method in java and display it inside an html tag? I used this question (JavaFX invoking Java methods using JavaScript) to create a javafx project that opens a .html file this html has some button and when clicking the onction executes methods made in java. Now I need methods made in java that contain some kind of return to be handled in html. Example: Imagine that I have a class in java that connects to a database via jdbc and does a select, and it returns a string, I want to get this string that will be the return of the java method and display it inside an html tag .

0 Answers
Related