>> 1. How to create in the file1.jsp a browse button to upload the file?
You need to use commons upload framework for this. Or you can use this I believe
http://www.java2s.com/Code
>> 2. How to send the attachment on file 2?
Then Once you get the uploaded File to the server use this program in a JSP suitably to send the mail with file attachment.
http://www.java2s.com/Code
Main Topics
Browse All Topics





by: deeppraPosted on 2007-11-13 at 21:20:48ID: 20277814
see these links where you can find some sample code
per/online Training/J avaMail/ co ntents.htm l#JavaMail Attachment s thread.jsp a?threadID =490443& me ssageID=23 06083
http://java.sun.com/develo
http://forum.java.sun.com/
If u have any problem get back to me