I'm trying to attach files using a "multipart/form-data" but I don'tknow how to get the stream out of the posted file!!Can anyone please help?I tried to use the request.getReader() (which returs aBufferedReader) and passed it inside a function in the bean in orderto create a parallel outputstream that will let me copy theBufferedReader to a new file that I put on the server (this file isthe one to be sent as an attachment; it will be later a MimeBodyPartfor a multipart object...).Another test using the request.getInputStream() was unsuccessfultoo11
i guess you'd better use ready and released tags or libararies foruploading your files, there are lots of them with documentations inthe Web. It would be an easy job for you;)you can download Struts library from apache official nighltydownloads
You can fine examples in java servlet programming and the sitein http://www.onJava.com and you can easily upload files on your site. and if ustill get some problem you can ask again as i am also working on the same thingbut i am facing some problems in this area. anyways your simple uploading can bedone from the examples avaliable in this book.
We are using File Upload Classes From http://www.jspsmart.com/
I want to thank all those who replied to my request;I successfully made the programming myself, not using anyalready "cooked" implementation, and I'm happy with that;My suggestion is: never get far from the "Java Cup"