質問

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