Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to upload single or multiple images using JSR-168 portlet

Ibungo Ibomcha
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to upload single and multiple images using JSR-168 portlets. But as there is no options for ActionRequest object for streaming, I'm unable to upload the image. I tried using MultipartParser(cos.jar) and ServletFileUpload from Apache, but all these needs HttpServletRequest not ActionRequest. I tried forwarding to a pure non-JSR-168 JSP page, i could get the image, I can go back to the JSR-168 JSP page after getting the image.

If anyone is aware of how to do this, please share with me.

Thanks in advance.

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!