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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top