Results 1 to 1 of 1
  1. #1
    nakumar97 is offline Member
    Join Date
    Apr 2009
    Rep Power

    Thumbs down File Upload in Struts

    i am using file upload in my struts application. all the needed is done,
    method="post" enctype="multipart/form-data" is added in HTML:FORM

    on Action class
    FileUploadForm fileUploadForm = (FileUploadForm) form;
    FormFile myFile = fileUploadForm.getFileupload();

    this line of code returns NULL. if i debug and check i can see the File in request(under mutipart) but it is not in the ActionForm. i m using netbeans. Please tell me what could be the problem
    Last edited by nakumar97; 04-08-2009 at 07:47 AM. Reason: adding some more info...

Similar Threads

  1. how to upload a .doc file using struts
    By anji4u_19 in forum Suggestions & Feedback
    Replies: 0
    Last Post: 08-26-2008, 10:58 AM
  2. how to upload a file?
    By tommy in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 06-30-2008, 02:50 PM
  3. file upload
    By sundarjothi in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-27-2008, 11:52 AM
  4. file upload in java
    By muralikrishna in forum New To Java
    Replies: 6
    Last Post: 06-25-2008, 08:24 AM
  5. File Upload
    By ShoeNinja in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-09-2007, 11:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts