[jboss-user] [JBoss Portal] - Re: download non-html file from portlet
bdaw
do-not-reply at jboss.com
Thu Jul 13 08:05:10 EDT 2006
Best practise is to create a servlet just like you described, place it in the same web application as your portlet and just link/redirect to it from portlet. Because servlet can share session with your portlet (same web app) you can either secure downloads with some kind of token id passed in querystring and token placed in session. You can even generate content displayed inside your portlet that way
Refer to attachments in ForumsPortlet implementation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957701#3957701
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957701
More information about the jboss-user
mailing list