View Javadoc
1 /* 2 * PROJECT : DAR Runtime and Tools 3 * COPYRIGHT : Copyright (C) 1999-2004 tim.stephenson@enableit.org 4 * LICENSE : GNU LESSER GENERAL PUBLIC LICENSE 5 * Version 2.1, February 1999 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 */ 21 package org.enableit.db.darrt.web; 22 23 24 // Java imports 25 import java.util.Map; 26 27 import org.apache.struts.util.MessageResourcesFactory; 28 import org.apache.struts.util.PropertyMessageResources; 29 30 31 /*** 32 * A minor extension to the Struts MessageResources to allow use with 33 * the JSTL standard tag library 34 * @author Tim Stephenson 35 */ 36 public class StandardPropertyMessageResources extends PropertyMessageResources { 37 /* 38 * Properties 39 */ 40 41 /*** 42 * CVS info ABOUT this class and its current version 43 */ 44 public static final String ABOUT = "$Id: StandardPropertyMessageResources.java,v 1.5 2004/03/20 05:25:03 tim Exp $"; 45 46 /* 47 * Constructors 48 */ 49 50 /*** 51 * Construct a new MessageResources according to the specified parameters. 52 */ 53 public StandardPropertyMessageResources(MessageResourcesFactory factory, 54 String config) { 55 super(factory, config); 56 } 57 58 /*** 59 * Construct a new MessageResources according to the specified parameters. 60 */ 61 public StandardPropertyMessageResources(MessageResourcesFactory factory, 62 String config, boolean returnNull) { 63 super(factory, config, returnNull); 64 } 65 66 /*** 67 * Copy constructor. 68 * <p>This is to work around a problem in configuring Struts to use this class 69 * in its message resource functionality.</p> 70 */ 71 72 /*public StandardPropertyMessageResources(PropertyMessageResources pmr) { 73 this.config = pmr.config ; 74 this.defaultFactory = new StandardPropertyMessageResourcesFactory() ; 75 this.defaultLocale = pmr.defaultLocale; 76 this.factory = pmr.factory ; 77 this.formats = pmr.formats; 78 this.returnNull = pmr.returnNull ; 79 this.locales = pmr.locales; 80 this.messages = pmr.messages ; 81 }*/ 82 /* 83 * Methods 84 */ 85 86 /*** 87 * @return <code>Map</code> of messages (includes all loaded locales). 88 */ 89 public Map getMessages() { 90 return messages; 91 } 92 }

This page was automatically generated by Maven