从portlet产生动态下载 [英] Produce a dynamic download from a portlet
问题描述
由上一个问题中的此评论引起:
Led by this comment in a previous question:
Portlet:转发ResourceRequest以显示全部门户网站
我想知道从portlet生成动态下载的最佳方法(例如,动态生成的PDF或图像),还是发出ResourceRequest,或者是否有更好的替代方法
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
推荐答案
ResourceRequests和serveResource方法的目的是提供一种服务资源或内容片段的方法.因此,是的,使用ResourceRequests是动态创建和提供PDF或图像之类的有效方法.
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.
这篇关于从portlet产生动态下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!