0

Is it possible to modify parameters of uploadPortletRequest?

UploadPortletRequest uploadPortletRequest = 
                            PortalUtil.getUploadPortletRequest(actionRequestNew);

I need to modify uploadPortletRequest parameters as:

uploadPortletRequest.setParameter("key","value")

Is there any solution?

user000001
  • 32,226
  • 12
  • 81
  • 108
BigT
  • 269
  • 1
  • 4
  • 21
  • i don;t think so we can set parameter but we can use uploadPortletRequest.setAttribute("key","value") – Gautam Apr 25 '14 at 10:04

1 Answers1

0

I am afraid there is nothing like setParameter. Infact no request instance like HttpServletRequest or PortletRequest or RenderRequest etc has such method. Its not part of the specification.

There is a good discussion here about this.

So you only have uploadPortletRequest.setAttribute(key, value), which is more than enough for all the requirements.

Also what would be the need to do this, if you can elaborate I am sure SO users can help you.

Hope this helps.

Community
  • 1
  • 1
Rasabihari Kumar
  • 491
  • 1
  • 4
  • 16