Produce a dynamic download from a portlet

2019-08-19 04:58发布

Led by this comment in a previous question:

Portlet: Forward a ResourceRequest to show the full portal

I was wondering if the best way to generate a dynamic download from a portlet (Like, for example, a dynamically generated PDF or image), is making a ResourceRequest, or if there is a better alternative approach

1条回答
Explosion°爆炸
2楼-- · 2019-08-19 05:53

The purpose of ResourceRequests and the serveResource method is to offer a way to serve resources or content fragments. So, yes, using ResourceRequests is a valid way to dynamically create and serve things like PDFs or images.

查看更多
登录 后发表回答