File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 upload

 
Rajamanickam Palani
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

How can i upload a file through javascript please help me.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rajamanickam Palani ,

You want to upload file via pure javascript or via struts2 ?

For struts2 , you can use the file filed in the struts form tag



On the action side



If you want to mix in Javascript with it , then you can call bind the form submit button with java script and fire an ajax request to upload the file to the server.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic