As the title says, you need to import the results of java class processing into HTML, and use the results of java class in HTML!
The simplest way is to Modify html to jsp, you can call the processing result of java class on jsp, or use ajax to return the result of java processing, and then parse the returned value on html and it will be OK
jsp page can use jsp: Bean tags are used to implement this function. Generally, if you want to use html pages, you can use the DWR js framework to achieve it