Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 75643 invoked from network); 17 Nov 2003 21:45:01 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Nov 2003 21:45:01 -0000 Received: (qmail 88654 invoked by uid 500); 17 Nov 2003 21:44:32 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 88540 invoked by uid 500); 17 Nov 2003 21:44:32 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 88527 invoked from network); 17 Nov 2003 21:44:31 -0000 Received: from unknown (HELO physics.gmu.edu) (129.174.44.73) by daedalus.apache.org with SMTP; 17 Nov 2003 21:44:31 -0000 Received: from physics.gmu.edu (localhost.localdomain [127.0.0.1]) by physics.gmu.edu (8.12.8/8.12.8) with ESMTP id hAHLhBM6022994 for ; Mon, 17 Nov 2003 16:43:11 -0500 From: mohan@physics.gmu.edu Received: (from apache@localhost) by physics.gmu.edu (8.12.8/8.12.8/Submit) id hAHLhBVl022992; Mon, 17 Nov 2003 16:43:11 -0500 X-Authentication-Warning: physics.gmu.edu: apache set sender to mohan@physics.gmu.edu using -f Received: from 138.88.163.115 (SquirrelMail authenticated user mohan) by physics.gmu.edu with HTTP; Mon, 17 Nov 2003 16:43:11 -0500 (EST) Message-ID: <63898.138.88.163.115.1069105391.squirrel@physics.gmu.edu> Date: Mon, 17 Nov 2003 16:43:11 -0500 (EST) Subject: Re: using ApplicationResources.properties in the Action class To: In-Reply-To: <62970.138.88.163.115.1069103209.squirrel@physics.gmu.edu> References: <62461.138.88.163.115.1069101745.squirrel@physics.gmu.edu> <62970.138.88.163.115.1069103209.squirrel@physics.gmu.edu> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Cool guys Sorry for asking such a dumb question. It can be easily called using the MessageResources class. Thank you > I have and a structure like this > project/src/java/webapp/- this contains the code ActionForm and Action > classes > project/web/app1-contains jsps for app1 and also > project/web/app1/WEB-INF/struts-config.xml,web.xml.,classes/ApplicationResource.properties > > project/web/app2-contains jsps for app1 and also > project/web/app2/WEB-INF/struts-config.xml,web.xml.,classes/ApplicationResource.properties > > the java code in src directory is common to application app1 and app2. > In my java code i want to use the ApplicationResources.properties for > each app and produce generic code. > > Thank you > --Mohan > > > > >> Put the file where you want it and have ant copy the file to the >> proper location for you. >> >> -jeff >> >> On Monday, November 17, 2003, at 02:42 PM, mohan@physics.gmu.edu >> wrote: >> >>> Hi All >>> I have my Action Class and ActionForm classes under project/src/java/ >>> and >>> all the jsp stuff under web/project. I have struts-config.xml etc >>> under web/project/WEB-INF. I have the ApplicationResources.properties >>> file under >>> web/project/WEB-INF/classes. How can i access the >>> ApplicationResources.properties file and its properties from my >>> Action class. I do not want that to be under my src/java directory. >>> Let me know >>> >>> Thanks >>> >>> --Mohan >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >>> For additional commands, e-mail: struts-user-help@jakarta.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For >> additional commands, e-mail: struts-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- To > unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For > additional commands, e-mail: struts-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org