Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@apache.org Received: (qmail 27517 invoked from network); 15 Aug 2002 09:36:07 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Aug 2002 09:36:07 -0000 Received: (qmail 24792 invoked by uid 97); 15 Aug 2002 09:36:38 -0000 Delivered-To: qmlist-jakarta-archive-struts-dev@jakarta.apache.org Received: (qmail 24775 invoked by uid 97); 15 Aug 2002 09:36:38 -0000 Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 24764 invoked by uid 97); 15 Aug 2002 09:36:37 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 15 Aug 2002 09:35:56 -0000 Message-ID: <20020815093556.34493.qmail@icarus.apache.org> From: cedric@apache.org To: jakarta-struts-cvs@apache.org Subject: cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/tiles InsertTag.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N cedric 2002/08/15 02:35:56 Modified: src/share/org/apache/struts/taglib/tiles InsertTag.java Log: Add a doInclude(...) method centralizing calls to pageContext.include(). Revision Changes Path 1.3 +15 -5 jakarta-struts/src/share/org/apache/struts/taglib/tiles/InsertTag.java Index: InsertTag.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/tiles/InsertTag.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- InsertTag.java 26 Jul 2002 16:18:28 -0000 1.2 +++ InsertTag.java 15 Aug 2002 09:35:56 -0000 1.3 @@ -753,6 +753,16 @@ //else if( value instanceof PathAttribute ) return new InsertHandler( (String)value.getValue(), role, getController() ); } + /** + * Do an include of specified page using pageContext.include() + * This method is used internally to do all includes + * @param page The page that will be included + * @throws ServletException - Thrown by call to pageContext.include() + * @throws IOException - Thrown by call to pageContext.include() + */ + protected void doInclude(String page) throws ServletException, IOException { + pageContext.include(page); + } ///////////////////////////////////////////////////////////////////////////// @@ -862,7 +872,7 @@ // include requested component. if( flush ) pageContext.getOut().flush(); - pageContext.include(page); + doInclude(page); } catch (IOException ex) { -- To unsubscribe, e-mail: For additional commands, e-mail: