jsp...javascript

I would like to have an upload file system on my webpage like Google on Gmail do. Take a look at www.gmail.com when composing a new message. You have a text links  'Attach a File'  that opens the 'browse file dialog' ... you just choose your file and click ok... When you submit the form (send the mail) the attachments is being uploaded. and when u click on the attach another file one more text box with browse button comes up...

How can we achieve this behavour in jsp using sevlets..
LVL 10
jagadeesh_motamarriAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rrzCommented:
You can use
http://jakarta.apache.org/commons/fileupload/   
If you have problems with it , then we will help you here.
0
actonwangCommented:
There is a lot of ways to do it and you can write your own upload servlet or use existing ones.

Here is a summary how you can do about it. I believe that you can find all information you need for uploading:

http://www.jguru.com/faq/view.jsp?EID=160


Enjoy!
Acton
0
jagadeesh_motamarriAuthor Commented:
hi guys...i'm asking but the style ....
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

rrzCommented:
>i'm asking but the style ....  
I don't understand. Please elaborate.
0
jagadeesh_motamarriAuthor Commented:
they way multiple file uplaod is simulated...
not all the browse button i.e file input box are displayed....
only one is displayed....and when user wants he clicks on add another and adds one mre....how do ui do that
0
rrzCommented:
Sounds like a job for javascript. I am not a javascript expert. I don't  have an gmail account.  If you can look at the source of the page, then you might learn how they do it.  I suppose you could create an array of File objects and make them visible as required. Did you ask in the javascript TA  ?     http://www.experts-exchange.com/Web/Web_Languages/JavaScript/
0
TimYatesCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rrzCommented:
Tim to the rescue.
0
TimYatesCommented:
;-)
0
actonwangCommented:
I c ...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.