struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Ying <liying.cn.2...@gmail.com>
Subject Re: Upload file content to text box using struts 1.3.8
Date Tue, 30 Nov 2010 04:24:26 GMT
Another way is, using AJAX:

(1)Send a file upload post, (using AJAX), to your FileUploadAction

(2)FileUploadAction just read in the CSV file content, and return it
as HTTP Response

(3)On client side, AJAX can receive the Server response, then you can put it
to the textarea (using JQuery)

See:
http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message