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

Categories

0 votes
734 views
in Technique[技术] by (71.8m points)

servlets - JSP context root shows empty page

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

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

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...