I am new to Java development and I have been thrown into the deep end and have been told to create a http server. I am currently trying to set up a button to shutdown the server after clicking it. I found a solution here:
How do I call a specific Java method on click/submit event of specific button in JSP?
My question now is what does the accepted answer mean by ${pageContext.request.contextPath}/myservlet
?
EDIT 1:
I am using the built in http server. THe tutorial I followed to set it up is:
https://www.codeproject.com/Tips/1040097/Create-a-Simple-Web-Server-in-Java-HTTP-Server