I'm a junior web developer and I am working on the development of a website for which I need to call a Java function in Javascript.
This Java function allows you to connect to a DB to insert data. I could do it in Javascript directly but my boss doesn't want it because by opening the source code of the page we could see the user's clear password when connecting to the database.
I know it's impossible to call a Java function in JS because Java is running on the server side unlike JS, but my boss tells me that no it's possible lol
Sorry if the subject has already been treated but it's been several days that I can't move forward and I don't know what to do ...
Thank you