#Connecting Java backend with HTML frontend

4 messages · Page 1 of 1 (latest)

meager coyote
#

I started a project for college where I need to make Gym system, Anyway, I am using HTML for my frontend and java for my backend and MS SQL for the database, I established connection between database and backend but struggling to make the frontend interact with the backend

rough gustBOT
#

This post has been reserved for your question.

Hey @meager coyote! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

gray valveBOT
#

Use tags like <script> function getData() { fetch('http://localhost:8080/api/data') .then(response => response.text()) .then(data => { document.getElementById('result').innerText = data; }) .catch(error => console.error('Error:', error)); }
</script>

This message has been formatted automatically. You can disable this using /preferences.