private void addInclude ( Node parent , List files ) throws JasperException { if ( files != null ) { Iterator iter = files . iterator ( ) ; while ( iter . hasNext ( ) ) { String file = ( String ) iter . next ( ) ; AttributesImpl attrs = new AttributesImpl ( ) ; attrs . addAttribute ( "" , "file" , "file" , "CDATA" , file ) ; // Create a dummy Include directive node Node includeNode = new Node . IncludeDirective ( attrs , reader . mark ( ) , parent ) ; processIncludeDirective ( file , includeNode ) ; } } }
Add a list of files . This is used for implementing include - prelude and include - coda of jsp - config element in web . xml