Not Rendering Multiple JSP
Answered
Hi all,
I am new to java and intellij, so i downloaded the student version and lunch java web page application the index.jsp worked fine after adding some html elements to it.
But adding another JSP web page to show just my name in html, i get the following message below in my browser
This localhost page can’t be found
No webpage was found for the web address: http://localhost:8080/Welcome.jsp
- Search Google for localhost 8080 Welcome
HTTP ERROR 404
i have configure Tomcat in the Run-->Edit Configurations, still this issue is still showing, however, if i switch back to index.jsp this page work
Kindly advice, Thanks
Please sign in to leave a comment.
Is the page named Welcome.jsp or welcome.jsp? The case matters.
Do you have it located next to index.jsp? What is the full URL that works for you with index.jsp?
Please share a screenshot showing the location of the welcome.jsp file in the Project View.
Hi Serge,
The name of the JSP is Welcome.jsp it is located right next to index.jsp in the web folder
see screenshot
Did you Update the artifact deployed on the server? See https://www.jetbrains.com/help/idea/updating-applications-on-application-servers.html .
Does http://localhost:8080/index.jsp URL work?
Many thanks, while i read the link you shared, the index.jsp URL is http://localhost:8080/HelloWorld_war_exploded/
Your Welcome.jsp page can be found here: http://localhost:8080/HelloWorld_war_exploded/Welcome.jsp.
Application deployment context can be configured here:
It defaults to the artifact name which is HelloWorld_war_exploded in your case.
If you want your web application to be available at http://localhost:8080/ URL and your Welcome.jsp page at http://localhost:8080/Welcome.jsp URL, you need to change the application context to / (forward slash or ROOT context) as shown on the screenshot above.
Thank you so so so so much it working correctly now, I am currently studying JAVA JSP and SERVLET with UDEMY.
Thanks again