This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MultipartIterator in Struts

 
Andy Deighton
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic