• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

MultipartIterator in Struts

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic