Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

jsp...javascript

Posted on 2006-03-28
11
Medium Priority
?
188 Views
Last Modified: 2010-04-01
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..
0
Comment
Question by:jagadeesh_motamarri
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 28

Expert Comment

by:rrz
ID: 16317364
You can use
http://jakarta.apache.org/commons/fileupload/   
If you have problems with it , then we will help you here.
0
 
LVL 19

Expert Comment

by:actonwang
ID: 16325381
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
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 16347289
hi guys...i'm asking but the style ....
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 28

Expert Comment

by:rrz
ID: 16347662
>i'm asking but the style ....  
I don't understand. Please elaborate.
0
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 16347677
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
 
LVL 28

Expert Comment

by:rrz
ID: 16347748
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
 
LVL 35

Accepted Solution

by:
TimYates earned 1500 total points
ID: 16361027
0
 
LVL 28

Expert Comment

by:rrz
ID: 16361299
Tim to the rescue.
0
 
LVL 35

Expert Comment

by:TimYates
ID: 16361340
;-)
0
 
LVL 19

Expert Comment

by:actonwang
ID: 16361529
I c ...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month20 days, 21 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question