[英]How do I parse through a URL path, get the filename, then replace the file extension using JSTL and Java scriptlet
[英]how do I get filename and it's path?
我只是想知道如何使用 java.io.File 獲取文件的名稱和路徑。 有沒有 function 可以做還是我應該手動做?
您可以使用getName()
和getPath()
方法獲取文件的名稱和路徑。 (文檔)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.