How to access the page under web-inf in the Eclipse project in the browser? Can't access it directly? How to write
in the address bar習慣沉默2017-05-17 10:10:22
Path problem, drag the file to the WEBRoot directory, or add the WEB-INF path when inputting on the browser
I just tried it and found that entering WEB-INF does not work. If you need to access it, you must access it through the Action class. Previously, you have always created a folder directly in the WEBROOT directory and placed the page in the folder to access it, so Yesterday's answer was wrong!
Accessing through Action is mainly for two purposes:
First, it is necessary to obtain data from the background;
Second, it is to prevent hotlinking.
I would like to emphasize again that you cannot directly enter the address in the address bar to access the page under WEB-INF.