cedric 02/04/15 01:21:31 Modified: contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition I18nFactorySet.java Log: Add another loading method for config files in order to let Websphere 3.5.x run (patch from Stephen Houston) Revision Changes Path 1.5 +14 -0 jakarta-struts/contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/I18nFactorySet.java Index: I18nFactorySet.java =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/I18nFactorySet.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- I18nFactorySet.java 18 Feb 2002 14:50:04 -0000 1.4 +++ I18nFactorySet.java 15 Apr 2002 08:21:31 -0000 1.5 @@ -424,6 +424,20 @@ try { InputStream input = servletContext.getResourceAsStream(filename); + // Try to load using real path. + // This allow to load config file under websphere 3.5.x + // Patch proposed Houston, Stephen (LIT) on 5 Apr 2002 + if (null == input) + { + try + { + input = new java.io.FileInputStream(servletContext.getRealPath(filename)); + } + catch (Exception e) + { + } + } + // If still nothing found, this mean no config file is associated if(input == null ) { //if(debug)
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>