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:
h
Why do you need two forms?
Can't you put the FileUpload and the textarea in one form?
And in your Action, you can create 2 method, one handle the file upload,
and the other one handle the other request
-
To unsubscribe, e-mail:
This textarea itself is one of the component of the form. So how to
put two forms in a single page?
On 11/29/2010 9:30 PM, Li Ying wrote:
(1)Select file from a [file input]
(2)Upload it to your Action (by a post)
(3)In your action, read in the CSV data, and store into some
property(let's say
(1)Select file from a [file input]
(2)Upload it to your Action (by a post)
(3)In your action, read in the CSV data, and store into some
property(let's say CSVDataProperty)
(4)Show your page again, and set the default value of the textarea by
CSVDataProperty
2010/11/30 Anjib Mulepati :
> Can anyo
4 matches
Mail list logo