Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

OpenJDK8 Java EE project using Tomcat 8.5 on Eclipse.

Let's say my project's context root is "/sample".

There is no problem presenting pages with URL "/sample/index.jsp".

If the URL's very end is "/sample"(which is context root),however, it shows an empty blank page.

I tried cleaning project, re-starting server and checking web.xml files but no error was found yet.

This has happened after merging with my teammates.

question from:https://stackoverflow.com/questions/65949018/jsp-context-root-shows-empty-page

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
754 views
Welcome To Ask or Share your Answers For Others

1 Answer

I exported the project and deleted from Eclipse.
Then I imported the project again and edit web.xml.
Hope this works for the ones who are struggling with the sample problem.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...