You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "balaji.m.cs" <ba...@gmail.com> on 2009/04/25 12:26:34 UTC

property file outside war file.

Hi ,
      I need to have my applicationresource.properties outside my war file
say it will be resided in some server location.... which will be reffered
frm my application inside jsps and actions..... will this be possible? if u
know kindly descirbe me....
     
-- 
View this message in context: http://www.nabble.com/property-file-outside-war-file.-tp23230253p23230253.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: property file outside war file.

Posted by Martin Gainty <mg...@hotmail.com>.
the 'prescribed way' Sun recommends getSystemResourceAsStream("FullyQualifiedURI");
http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html#getSystemResourceAsStream(java.lang.String)

HTH
Martin Gainty 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.






> Date: Sat, 25 Apr 2009 03:26:34 -0700
> From: balaji.m.cs@gmail.com
> To: user@struts.apache.org
> Subject: property file outside war file.
> 
> 
> Hi ,
>       I need to have my applicationresource.properties outside my war file
> say it will be resided in some server location.... which will be reffered
> frm my application inside jsps and actions..... will this be possible? if u
> know kindly descirbe me....
>      
> -- 
> View this message in context: http://www.nabble.com/property-file-outside-war-file.-tp23230253p23230253.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.  
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009