java - How to access the page under web-inf in the Eclipse project in the browser, is it not possible to access it directly? How to write in the address bar
ringa_lee2017-05-17 10:08:22
0
2
724
How to access the page under web-inf in the Eclipse project in the browser? Can't access it directly? How to write
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.
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.
Direct access is prohibited