Why don't you want to load it as a ResourceBundle?

David


From: "Raible, Matt" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Use messages from ApplicationResource.properties for an e-mail
Date: Tue, 25 Mar 2003 14:20:31 -0700

I have a requirement to send a notification e-mail when an item in my app is
deleted. I was hoping to use a string (post-substitution) from
ApplicationResource.properties to do this, but alas, it does not work like I
hoped. Is this possible without loading it as a ResourceBundle and calling
getString()?


// deletedBy and appURL are set previously as String variables

new ActionMessage("cr.deleted.msg", deletedBy, appURL).toString()

results in...

[EMAIL PROTECTED]

Thanks,

Matt



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



_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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



Reply via email to