I would like to redirect to particular servlet doGet()
when hostname.com
hits in browser.
I have been going around in this basic issue. Please guide.
I have a folder structure of my legacy application in windows environment:
D:\tomcat9\webapps\root\web-inf\classes\ProjectName\SRC\SomeFolder.
This SomeFolder has a list of servlets.
What I Did:
- tried to replaced index.jsp in ROOT folder with response.SendRedirect("/servlet-url-mapping-path");
- tried to add extra hosts in server.xml which destroyed my application loading even.
Help (Yes this is very old legacy application, not even using jsps.)