craigmcc    01/02/13 09:27:22

  Modified:    src/share/org/apache/struts/util ResponseUtils.java
  Log:
  Correct the writePrevious() method to go only one level up (to our parent tag),
  rather than all the way up to the page writer.
  
  Revision  Changes    Path
  1.3       +6 -6      
jakarta-struts/src/share/org/apache/struts/util/ResponseUtils.java
  
  Index: ResponseUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/ResponseUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ResponseUtils.java        2001/02/12 21:50:02     1.2
  +++ ResponseUtils.java        2001/02/13 17:27:20     1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/ResponseUtils.java,v 1.2 
2001/02/12 21:50:02 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/02/12 21:50:02 $
  + * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/ResponseUtils.java,v 1.3 
2001/02/13 17:27:20 craigmcc Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/02/13 17:27:20 $
    *
    * ====================================================================
    *
  @@ -76,7 +76,7 @@
    * in the Struts controller framework.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.2 $ $Date: 2001/02/12 21:50:02 $
  + * @version $Revision: 1.3 $ $Date: 2001/02/13 17:27:20 $
    */
   
   public class ResponseUtils {
  @@ -164,7 +164,7 @@
   
       /**
        * Write the specified text as the response to the writer associated with
  -     * the page containing the tag within which we are currently nested.
  +     * the body content for the tag within which we are currently nested.
        *
        * @param pageContext The PageContext object for this page
        * @param text The text to be written
  @@ -175,7 +175,7 @@
           throws JspException {
   
           JspWriter writer = pageContext.getOut();
  -        while (writer instanceof BodyContent)
  +        if (writer instanceof BodyContent)
               writer = ((BodyContent) writer).getEnclosingWriter();
           try {
               writer.print(text);
  
  
  

Reply via email to