[jboss-user] [JBoss Portal] New message: "portlet container serveResource issue"

Rajasundaram Gopalan do-not-reply at jboss.com
Tue Mar 2 21:44:55 EST 2010


User development,

A new message was posted in the thread "portlet container serveResource issue":

http://community.jboss.org/message/529517#529517

Author  : Rajasundaram Gopalan
Profile : http://community.jboss.org/people/rajasundaram

Message:
--------------------------------------------------------------
Hello Jboss Portlet container contributors,
 
I am using jboss portlet container where I use portal taglib to call the page and portlet. One of the portlet implemented serveResource functionality.
<test:layout>
 <portal:page>    
  <test:1column>       
      <jsp:attribute name="maincolumn">
    <test:portlet name="serveMedia" applicationName="ServeResourceApp" />
        </jsp:attribute>
     </test:1column>
 </portal:page>
</test:layout>
 
 
When I click the resource url it calls the jsp and portlet serveResource function using taglibs and it plays the media file.
 
My requirement is show open and save dialog box.
 
I am seeing followings are the reason:
 
First, it opens the response out stream on the jsp with the content type "text/html" .
Second, PortletResponse sets the contentType 'media/x-wav'
 
But in the JBoss Portal 2.7.1 serveResource worked well:
 
Page,Window and portlets are controlled by JBoss Portal they use HTTPResponse class to copy the renderResponse output stream to ServletResponse. And it opens up the save open dialog.
 
Is there any way I can call the page/window/portlet in jsp using scriptlets? or any other solutions?
 
 
Thanks,
Raja

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/529517#529517




More information about the jboss-user mailing list