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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>