Hi Julio,

Since the ApplicationResources.properties is a Property File, you can read it
and use the java.util.Properties class to load this properties and the
java.text.MessageFormat class to format and display the messages.


// this code is to load the ApplicationResources.properties into a Properties
object
Properties props  = new Properties();
props.load(new FileInputStream(new File("path_to_appResoureces.properties")));

[]īs
Henrique Viecili

----- Original Message ----- 
From: "Julio Cesar De Salvo" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 10:41 AM
Subject: how to create a MessageResouces


> What's the best way to create a MessageResource object that loads the
> ApplicacitonResources.properties outside the struts framework (for eg.
> In a servlet)?
>
> Thanks
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to