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_lee
ringa_lee 2017-05-17 10:08:22
0
2
720

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
ringa_lee
ringa_lee

ringa_lee

reply all(2)
習慣沉默

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template