Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@www.apache.org Received: (qmail 93695 invoked from network); 4 Jun 2004 18:19:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jun 2004 18:19:16 -0000 Received: (qmail 10570 invoked by uid 500); 4 Jun 2004 18:19:10 -0000 Delivered-To: apmail-jakarta-jetspeed-dev-archive@jakarta.apache.org Received: (qmail 10508 invoked by uid 500); 4 Jun 2004 18:19:09 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 10456 invoked by uid 99); 4 Jun 2004 18:19:07 -0000 Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 04 Jun 2004 11:19:07 -0700 Received: (qmail 29952 invoked from network); 4 Jun 2004 18:19:53 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 4 Jun 2004 18:19:53 -0000 Message-ID: <569921519.1086373193697.JavaMail.apache@nagoya> Date: Fri, 4 Jun 2004 11:19:53 -0700 (PDT) From: jira@apache.org To: jetspeed-dev@jakarta.apache.org Subject: [jira] Commented: (JS2-67) Have to manually set the content type on the response object in certain portlets In-Reply-To: <1928935191.1086277256853.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The following comment has been added to this issue: Author: David Sean Taylor Created: Fri, 4 Jun 2004 11:18 AM Body: see PLT.12.3.1 in the Porlet spec: "A portlet must set the content type of the response using the setContentType method of the RenderResponse interface." This is not a bug and Im going to close the issue. --------------------------------------------------------------------- View this comment: http://issues.apache.org/jira/browse/JS2-67?page=comments#action_35906 --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/JS2-67 Here is an overview of the issue: --------------------------------------------------------------------- Key: JS2-67 Summary: Have to manually set the content type on the response object in certain portlets Type: Bug Status: Unassigned Priority: Major Project: Jetspeed 2 Components: Container Versions: 2.0-dev/cvs 2.0-a1 Assignee: Reporter: Scott T Weaver Created: Thu, 3 Jun 2004 8:39 AM Updated: Fri, 4 Jun 2004 11:18 AM Description: Created a simple portlet that extends javax.portlet.GenericPortlet and implmenet the doView() method like this: String url = getInitParameter("url"); response.getWriter().write(""+url+""); This does not work and logs an error that the content needs to be set before getWriter() is called. As soon as I added that a line that does that: String url = getInitParameter("url"); response.setContentType("text/html"); response.getWriter().write(""+url+""); everything works fine. Am I missing something in the spec, or is this really a bug? --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org