I want to download a pdf file which is stored in the folder which is in WebContent of project

后端 未结 2 1194

This is my Strut file.


    

        
2条回答
  •  孤城傲影
    2021-01-22 22:11

    I have solved this question. I have stored the physical path of the file in the data base.For example if your project path is : D:/Workspace_ABC/SampleProject/WebContent/D-Files/APJ.AbdulKalam.pdf then store this path as it is in the database table. and then use this path to download file.

提交回复
热议问题