3 Replies Latest reply on Jan 26, 2011 9:10 PM by ndkhoiits

    Contenttype

    thomman

      How to set contenttype of portlet in Gatein

        • 1. Re: Contenttype
          ndkhoiits

          Sorry, i cannot understand what 'content type' means

          • 2. Contenttype
            rraposa

            Are you talking about the following:

             

                protected void doView(RenderRequest request, RenderResponse response)

                        throws PortletException, IOException, UnavailableException {

                    response.setContentType("text/html");

                    //Send back the response...

                }

            • 3. Contenttype
              ndkhoiits

              FYI, the content type can be set by doHeader method as PLT.11.1.4.3 in specs