portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container JetspeedContainerServlet.java
Date Tue, 02 Nov 2004 23:24:02 GMT
taylor      2004/11/02 15:24:02

  Modified:    commons/src/java/org/apache/jetspeed/container
                        JetspeedContainerServlet.java
  Log:
  don't write to output stream unless we are in render
  
  Revision  Changes    Path
  1.19      +7 -3      jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container/JetspeedContainerServlet.java
  
  Index: JetspeedContainerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container/JetspeedContainerServlet.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- JetspeedContainerServlet.java	2 Nov 2004 22:58:13 -0000	1.18
  +++ JetspeedContainerServlet.java	2 Nov 2004 23:24:02 -0000	1.19
  @@ -199,6 +199,7 @@
       public final void doGet(HttpServletRequest request, HttpServletResponse response) throws
IOException, ServletException
       {
           String portletName = null;
  +        Integer method = ContainerConstants.METHOD_NOOP;
           try
           {
               // Check to make sure that we started up properly.
  @@ -209,7 +210,7 @@
   
               // infuseClasspath();
               
  -            Integer method = (Integer) request.getAttribute(ContainerConstants.METHOD_ID);
  +            method = (Integer) request.getAttribute(ContainerConstants.METHOD_ID);
               if (method == ContainerConstants.METHOD_NOOP)
               {
                   return;
  @@ -259,7 +260,10 @@
                   }
                   else
                   {
  -                    displayPortletNotAvailableMessage(t, response, portletName);
  +                    if (method != ContainerConstants.METHOD_ACTION)
  +                    {
  +                        displayPortletNotAvailableMessage(t, response, portletName);
  +                    }
                   }
               }
               catch (Throwable e)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message