Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

create space for download on my site

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to create an area on my site, where this place (link) several files to put the visitor can copy (using mysql database)

Do you have any examples jstl in jsp ..?

thanks
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not exactly sure what you're asking; they'll be downloading files from your site to their machine?
 
Tatiana Schineider
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
..
hi,

For example, when user enter my site, there is a menu button with a written DOWNLOADS. this place had existed for the user to copy files to your local machine if desired. understand?

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not really :)

Are you asking how to send files stored in a database to the user?
 
Tatiana Schineider
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
..

Imagine the situation (example)

You enter a site that has a stockpile of songs.

You go to a link to this site and this place has several songs. So you choose a song and copy to your local machine!

Do you understand?
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, it sounds like you just want to download files; if you search the web for "download servlet" or something similar you will find countless examples. If you're actually storing the songs in the database (something I don't really recommend, but others may have a different opinion), you just need to get the bytes and stream those to the lient using the same type of mechanism.
 
Tatiana Schineider
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
..

n this case, are not music!

Files that are put in a directory for those who want a copy!

You have an example?
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Again, search the web for "servlet download". There are countless examples.
 
Tatiana Schineider
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
..
I found some explanations, but I could not adjust my code!

You have an example?

but thanks for your help
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An example of what, precisely? It's very important to TellTheDetails as best as you can, otherwise we're just guessing at what you really need.
 
Tatiana Schineider
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
..
More details!?

The style of the application I already mentioned above. A place on the site that you can copy files to your local machine! (Link downloads)

I use jstl, jsf, jsp, mysql

You mentioned "download servlet" I searched and found some examples, but as I am still studying, I could not develop the code
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, more details: what about the download servlet didn't work, or what didn't you understand, or...? Otherwise all anybody would do would cut-and-paste one of the examples you've already seen, and nothing has been accomplished. JavaRanch is NotACodeMill -- we expect people to ShowSomeEffort and TellTheDetails.

We can't read your mind to know what issues you're having--you have to help us help you! What have you tried so far?
 
Tatiana Schineider
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


You asked for details, I mentioned the details. Now if you do not understand, is a different situation.

I always struggle. Anyway!

Thanks,
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you expect us to help if we don't know what problem you're having? All you've said is that you can't get it to work. ItDoesntWorkIsUseless: if you don't show us what you've tried it's near impossible to provide useful input.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic