-
1. Re: Jboss portal 2.6 and jnlp
bdaw Nov 20, 2006 8:55 AM (in response to cristidb)You need create a direct link to a file not a portlet URL .
For static file use request.getContextPath()
For dynamic file create an URL to a servlet in the same web application and pass data to it using PortletSession.APPLICATION_SCOPE. -
2. Re: Jboss portal 2.6 and jnlp
cristidb Nov 20, 2006 8:58 AM (in response to cristidb)I tried setting:
rResponse.setContentType("application/x-java-jnlp-file");
in the doView method, and I get Content type not accepted. -
3. Re: Jboss portal 2.6 and jnlp
bdaw Nov 20, 2006 9:29 AM (in response to cristidb)No. You simply can't do this like that. This is the same problem as "I want to download a file that I store in database from inside a portlet and .setContentType() doesn't work...".
Portal agregates content from all portlets on the portal page, so you always generate only page fragment in a portlet. If you have the static file in your web archive then use DIRECT URL to it. If it's dynamic content you MUST use an URL to servlet that will do the job for you.