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 Portals and Portlets and the fly likes Need Help Regarding file upload Spring MVC portals 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 » Java » Portals and Portlets
Bookmark "Need Help Regarding file upload Spring MVC portals" Watch "Need Help Regarding file upload Spring MVC portals" New topic
Author

Need Help Regarding file upload Spring MVC portals

Vas Miriyala
Ranch Hand

Joined: Sep 14, 2009
Posts: 114

I am doing fileupload in Spring MVC portals.I read the documentation but it didn't worked for me.The thing is that I am getting File name but not able to get the content .I used enctype="multipart/form-data" ,can some body tell me any idea why I am not getting file content and if check the getting file is whether type of File or not,its returning false,so i am guessing that i am not at all getting file and content,getting just name.can some body help me out from this issue...
Vas Miriyala
Ranch Hand

Joined: Sep 14, 2009
Posts: 114

The thing is that we need to type cast the ActionRequest object into multipartActionRequest and then get the uploaded files from multipartActionRequest Object.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need Help Regarding file upload Spring MVC portals
 
Similar Threads
Spring 3.0 MVC examples links required
Need Spring Tag lib example
how to pass parameters between methods using Spring MVC
how to read and write, save a xml stream passed to a Servlet
Spring MVC Hello world application error