java - Intellij web application on tomcat server shows http://localhost:8080/index.jsp instead of http://localhost:8080/myapp/index.jsp -
i'm following tutorial on udemy. in tutorial using eclipse. i'm following course intellij. every thing works fine 1 thing keep noticing when runs servlets or jsp pages shows project name before servlet(http://localhost:8080/myapp/index.jsp). when create web application on intellij shows http://localhost:8080/index.jsp.
so question how can project name before /index.jsp.
i tried add web.xml file not seems work
<display-name>myapp</display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
you can enter application url in 'edit connfiguration' of tomcat server.
- click on edit configuration
- enter application url in start page

note:- above solution work, if doesn't might need change application context '\myapp' in deployment tab.
Comments
Post a Comment