This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Recommendation about JSP-FileManager  RSS feed

 
Ranch Hand
Posts: 106
1
  • 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: 23640
48
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: 106
1
  • 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: 106
1
  • 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: 4691
117
  • 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: 106
1
  • 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: 23640
48
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: 106
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you : )
 
Bartender
Posts: 19664
92
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!