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
config the servlet-mapping.
alter the URL, that some old modules url don't filtered by struts2!
On Tue, Oct 7, 2008 at 11:30 AM, Po Po <[EMAIL PROTECTED]> wrote:
> Hello,
> Some modules in my application not yet migrate to struts 2.
> upload file doesn't work (using commons file upload), because
Flávio Maldonado wrote:
Hello
I'm having a problem to upload a file using struts...
I search for the error at Google... but I didn't solve my problem yet.
I have this JSP:
size="40"/>
when I click in Ok button to call the action class, the servlet throws
an ex
This probably won't help, but (you never know) - you might want to specify
method="POST". So:
Just a thought.
Daniel
> -Original Message-
> From: Flávio Maldonado [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 27, 2005 1:52 PM
> To: Struts Users Mailing List
> Subject: Upload Fi
You need to specify an "enctype"...theres a some info on uploading files
here on the wiki:
http://wiki.apache.org/struts/StrutsFileUpload
Niall
- Original Message -
From: "Flávio Maldonado" <[EMAIL PROTECTED]>
Sent: Thursday, March 17, 2005 2:53 PM
> Hi all!
>
> I'm having a problem t
I'm certainly not an upload expert, but I have succeeded in uploading
files before by following the struts sample upload application. You
can find this among the sample webapps included in the struts binary
distribution. Check out the code in that sample app, including how
the form was declared a
One technique would be overriding dispatchactions execute method in that
action to check for this attribute and then delegating back to the
superclass to handle the normal situation when its not found or calling
the appropriate method when it is?
ie:
public ActionForward execute(ActionMapping m
Hi Vijaya,
Try using isFormField() method of FileItem interface, which indicates
whether the item is form field or not.
If it is then u can use getFieldName() and getString() on FileItem to
retrieve the form field name and value
of it in String format.
Hope this would be helpful.
For details of
11 matches
Mail list logo