my dog learned polymorphism
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
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!
I agree. Here's the link:
subject: MultipartIterator in Struts
It's not a secret anymore!