0

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

  • Try searching [Jsp Implicit Objects](https://beginnersbook.com/2013/11/jsp-implicit-objects/) and you'll find all your answers – Neeraj Jain May 09 '18 at 11:40
  • 1
    The built-in HTTP server is unable to handle JSP. If you want to use JSP/servlet technology you should use a servlet server like Jetty or Tomcat. – vanje May 09 '18 at 12:20

0 Answers0