What is the best way to achieve this ? I have a tomcat server and the files are uploaded to the WEB-INF folder and I used to write a html file (index.html) and add the files manually. I enabled directory listing in Tomcat but when I type in http://127.0.0.1/test_server/WEB-INF/ I get a 404 , if I move the files to test_server instead of WEB-INF and if I go to http://127.0.0.1/test_server/ The file gets listed there so how do I get it to work when I navigate to WEB-INF folder ?
Dynamically update the list of files in a folder
458 Views Asked by cyberbemon At
1
There are 1 best solutions below
Related Questions in TOMCAT
- Unable to compile the class for JSP in tomcat 8.5.95
- detect catalina.out log path from a running tomcat on non-Windows
- Tomcat 9.0.80 with Open JDK (JRE only) v16.0.2 crashing/unresponsive several times a day with load: Thread Count hits Max and All Threads are Busy
- JAX-RS webapp deployed to Tomcat returns HTTP 404 error while it works fine in Eclipse
- Illegal access: this web application instance has been stopped already. Could not load [org.apache.logging.log4j.message.SimpleMessage]
- File Upload Handling: Inconsistent HTTP Response Codes for Different File Sizes with Exception in Tomcat
- Don't get any public folder when deployment in svelte kit app
- Accessing solr web interface behind reverse proxy returns "Content Encoding Error"
- java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSL.renegotiatePending(J)I
- Cannot decrypt the password in application.yml properly if war file in the tomcat/webapps
- how to deploy mock json data api's(json-server) and angular 17 application in apache tomcat server 9 version
- version compatibility issue between spring boot, struts2-core and tomcat-embed-jasper in web application
- Is there any possibility to use JTA with Spring Framework 6 and Tomcat or Payara?
- Eclipse issue with publishing to Tomcat server
- null in Camunda variables
Related Questions in DIRECTORY-LISTING
- Issue in mylisting theme at result page
- ftpLib nlst() throwing an error - 'utf-8' codec can't decode byte 0xed in position 87: invalid continuation byte
- Select all csv files from a directory, and filter a specific column in kotlin android
- Adding online payment method in wordpress listing website
- How does the python listing functions like os.listdir() work?
- Is executing "ls" from the shell similar to calling os.listdir() from a python script at the kernel level?
- Deploy Flask in Apache, and still enable Apache Directory Listing
- Cloudfront backed S3 bucket: listing bucket contents over https with prefix
- How to get the progress of directories traversing
- 64-bit opendir and readdir in C++Builder
- I need help getting files from a folder on the server and using their path as the source for my video tag
- Why do I have a directory listing on my project when it's not on a web server, and how can I disable it
- Wordpress - make a list af specific users
- How can I get a count of directories and files in a base directory and each descendant directory?
- Cannot assign variable in for-loop in shell script
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
"TheWEB-INF directory is not part of the public document tree of the application. No file contained in theWEB-INF directory can be served directly to a client by the container. However, the contents of theWEB-INF directory are visible to servlet code using the getResource and getResourceAsStream() method calls onthe ServletContextorincludes/forwardsusingthe RequestDispatcher."
More explanation ca be found here: http://docs.oracle.com/cd/E11035_01/wls100/webapp/configurewebapp.html
So you should use a different directory if you want to enable directory listing.