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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "MultipartIterator in Struts" Watch "MultipartIterator in Struts" New topic
Author

MultipartIterator in Struts

Andy Deighton
Ranch Hand

Joined: Apr 01, 2003
Posts: 39
Hi,
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?
Andy
Josh Landin
Greenhorn

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
Josh,
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!
Regards,
Andy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MultipartIterator in Struts