display files contents in textarea immediately after uploading

I would like to display the content of csv file in a textarea for my project using jsp, java spring. I am uploading csv file which consist of user details . After uploading file i want to display content of this into textarea immediately.

Any code or how to do it.

P.S.: I really appreciate if anybody can edit or improve tags.

Answers


you may wanna use jquery and jquery plugin uplodify. You will echo the uploaded file in your servlet or whatever. then push that "response" data into your html element...

$('#file_upload').uploadify({
  // your configuration...
  'onComplete'  : function(event, ID, fileObj, response, data) {
     $('#yourhtmlelement').html('the contents of the file=' + response);
   }
});

Need Your Help

JProgressbar: how to change colour based on progress?

java swing netbeans colors jprogressbar

Is it possible to be able to change the bar colour depending on the value of the progress? I tried the following but it doesn't work:

how to get the number of lines of edittext in landscape mode

android landscape lines

I am having issue in getting number of lines currently set in an edittext in landscape mode.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.