1 Reply Latest reply on Mar 3, 2010 4:03 PM by Rajasundaram Gopalan

    portlet container serveResource issue

    Rajasundaram Gopalan Novice

      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