My Current url for login page is http://xyz/prweb/PRServlet . Where xyz is the server name. Now the Client don;t want the /prWeb/PRServlet in the login url . The new url should look like http://xyz . What is the best way to implement this ?
***Updated by Moderator: Marissa to update categories***
Thanks for providing the related post. The post explains the way to the change the PRServlet name to custom . So the end url will still have the format of "/<context_root>/MyCustom" . My requirement is not to have the /<context_root>/MyCustom in the url.
In a Server we can deploy n number of web applications and each web application can be differentiated with its unique context-root. So this context root is mandatory in your URL i.e. if you want to deploy an application X which has context path (contextpath1) in domain (mydomain) then it can be accessed with url as http://mydomain/contextpath1.
In our case the PRPC application will be deployed into prweb context-root by default, so you can access the application with url http://domain/prweb. This will internally calls the servlet definition which acts as a starting point of the application.
So as per my knowledge you can change the /prweb to your custom context-root name during deployment of war file and you can write your own custom servlet definition and change it in the web.xml as suggested by chris, which means you should have the syntax of your url as follows: