[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Upload file content to text box using struts 1.3.8
From:       Li Ying <liying.cn.2010 () gmail ! com>
Date:       2010-11-30 4:24:26
Message-ID: AANLkTinO2vii52XEzg=Ptx2s=md8bziQ03yXq9_i=7qx () mail ! gmail ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic