Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
678 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...