As described here JAR and WAR are packeged in EAR file.
I have a Java Servlet packaged and a index.html
that uses Angular.js to send HTTP requests to the Servlet, here is my URL (running on localhost, using Tomcat).
var baseUrl = http://localhost:8080/GM/deploy //GM - my project name
And in the servlet :
@WebServlet("/deploy")
My question is, after deploying my EAR file on WebShpere, what is the URL that goes inside baseUrl
? Is there a way to send the request using relative path?