This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Ajax Struts2 file upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ajax Struts2 file upload" Watch "Ajax Struts2 file upload" New topic
Author

Ajax Struts2 file upload

Harish Sahu
Greenhorn

Joined: Mar 07, 2011
Posts: 5
I have to upload a file in struts2 using ajax and jquery . Once the file is uploaded I have to display filesize, file type, file name and created/updated date in the same page.


Please suggest me , how to implement this.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

The only problem I see is that I don't think you can get the file created date from a file (unless it's in the file, like in JPG metadata).
I'd think the Struts end is going to be the same as any other file upload. What have you tried so far?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax Struts2 file upload
 
Similar Threads
Struts2
Struts2 & XmlHttpRequest & input_file & Html5
Fileupload + struts2
File Uploader with a progress bar in Struts2
how to download a file in struts2