Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Handling Attachments in JSP - Urgent  RSS feed

 
sujatha kasim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anybody tell me how to handle attachments.I am required to handle the attachemnts(multimedia files) posted and then later retrieve and allow others to view it.The Server which I am using is Tomcat and the code to be in JSP.
Thanks.
 
Sunetra Saha
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you have to do is upload the attachments to a certain location on your server and retreive them later from the same. For that you can create a new file for each attachment(name uniquely identifying the attachment as well as associating it with whatever it attaches to) and use an upload mechanism (like jsp smart upload, a free tool) to load the files to the server. Retrieving the files will be easy since there is an unique naming mechanism.
 
sujatha kasim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Sunetra.I will try it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!