Produce a dynamic download from a portlet

会有一股神秘感。 提交于 2019-12-25 08:14:30

问题


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:


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.



来源:https://stackoverflow.com/questions/13862722/produce-a-dynamic-download-from-a-portlet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!