This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Attechedment/DownLoad Servlet  RSS feed

 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can anybody tell me how do i achieve facility like attechement in all email(HOTMAIL/YAHOO)will provide.
I mean how i will upoload my file to server and while retriving down-load to local machine.
Plz help me.
Thanx in advance
sanjay
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.google.com/search?q=upload+servlet
Now wasn't that easy? Running an internet search before asking questions is highly useful, as you can be more specific in your query and sound more knowledgable in the description of your predicament. BTW, the link to the jGuru question is most helpful. If you have further questions after your research, don't hesitate to ask them - we'll be here ready and waiting.
 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
Garry
Thanx for your help.Now can anybody tell me the document which we can atteched with perticular mail will be stored in dtabase or only referance(Name) stored in database and file put in some folder of web-server.
Thanx
sanjay
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you are referring to a particular implementation of a file upload servlet, once you've read the file it's up to you what happens from there. It's hard to tell from your question because you don't give much detail. In the version I used a while back, once I read the file in I saved it on the webserver/appserver using a fully-qualified path that resides in the HTML document area of the webserver so that anyone can get to it, then stored the html link to that location in a database table. Once you get the file it's all up to you. Standard I/O and JDBC functions work just fine in servlets, so you can store the file in any way you choose.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!