I have developed one app in ethereum which contains smart contract, js and html (for web app).
I have developed it using truffle, ganache and solidity. I am accessing it in html and call the functions of smart contract using web3 library inside my js code.
Now, I want to use this in Java, so if in java if I write my html code inside jsp, so what will be the flow for calling smart contract and back end js (which is calling smart contract functions).
Should I need any API or I need to make any restful service ? What can be the flow for using it in Java ?