aspose file tools*
The moose likes Struts and the fly likes MultipartIterator in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "MultipartIterator in Struts" Watch "MultipartIterator in Struts" New topic

MultipartIterator in Struts

Andy Deighton
Ranch Hand

Joined: Apr 01, 2003
Posts: 39
I am trying to use the MultipartIterator for the first time. However, I'm getting nowhere in getting my Action class to even be invoked. Does anyone know of any comprehensive examples of MultipartIterator and how to handle file uploads using the <html:file/> tag?
Josh Landin

Joined: Jun 09, 2003
Posts: 10
If your action isn't being invoked at all, I would say you have some mapping issues, or you're not including the correct <html:form> action property in the jsp to match the struts config.
Have you tried grabbing the MultipartRequestHandler from the form bean?
In the jsp you would have:

Then in the Action class:
Andy Deighton
Ranch Hand

Joined: Apr 01, 2003
Posts: 39
Thanks for the tips. I'll give it a go. Gotta admit that I'm not doing what you suggest, which is where I'm probably going wrong!
jQuery in Action, 2nd edition
subject: MultipartIterator in Struts
Similar Threads
Firebug question
Call font in CSS and the font will be in project font folder
Question related to Interfaces
how to transfer images to ftp server in android
WA #1.....word association