search

Home  >  Q&A  >  body text

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

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_leeringa_lee2754 days ago729

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默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.

    reply
    0
  • 黄舟

    黄舟2017-05-17 10:10:22

    Direct access is prohibited

    reply
    0
  • Cancelreply