Connecting SQL to JavaScript code

What changes to be made in connecting jsp file to SQL.
Can anyone provide code for connecting jsp to SQL on 000webhost

Does it involve RemoteMYSQL?

No, I made another database in my database section on 000webhost

I’m not sure 000webhost supports JSP?