Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Recommendation about JSP-FileManager  RSS feed

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi community!

I would like to integrate a file-manager to my jsp-file.
Because I would like to upload/ download files to my ftp-server via jsp.

Can you recommend some file-managers for jsp?


Thanks a lot.
 
Sheriff
Posts: 23451
46
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would this file manager be managing files on the FTP server, or files on the client machine? Both of those ideas seem problematic to me because (1) HTML doesn't have access to the files on the client machine and (2) uploading files via JSP uses HTTP and not FTP.
 
Ralf Coby
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and thank you for anwering.

Basically, I need a way to get the directory-path as a string.
The user should dynamically choose files in a explorer which are necessary to upload.

Is there any soloution in spring or in other frameworks?
Thank you very much.
 
Ralf Coby
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update:

I've found a solution via JavaScript to open a file-explorer.

But I don't wanna use JavaScript....
 
Saloon Keeper
Posts: 4331
108
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you want to do something on the client side, not the server side?
 
Ralf Coby
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:So you want to do something on the client side, not the server side?



Exactly : )
 
Paul Clapham
Sheriff
Posts: 23451
46
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, with HTML you can choose a file via the <input type="file"> tag. But then that only allows you to upload the chosen file via HTTP, not FTP. If you want to use FTP then tools based on HTTP are probably not the right way to go.
 
Ralf Coby
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you : )
 
Saloon Keeper
Posts: 19266
85
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, as I like to stress, a web server is not a file server.

File servers come in multiple flavors, with SMB/CIFS being the flavor used for Windows LANs and NFS being the flavor preferred by Unix and Linux systems. Each of those systems requires a different filesystem driver, uses a different protocol, and even uses different network ports.

Then there's FTP and HTTP, which again each has its own protocol and ports.

Web clients (for example, browsers) usually only have HTTP and HTTPS built in, so you cannot simply treat files made visible from a web server like they were local or LAN based files. In fact, you cannot "open" a webserver file at all. HTTP(S) actually just copies what's in the file to or from the client to the server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!