Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2006, 01:49 PM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Use properties-files in Action classes

Is it possible to use the text-elements of the properties files within a java class? I need a string from my properties files using the defined key in the file.

 
Old May 3rd, 2006, 04:06 AM
Authorized User
 
Join Date: Apr 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vakorde
Default

you can use some thing like this

MessageResources propertiesFile = MessageResources.getMessageResources("comany/test/resources/AdminProps");

to get the value against the key you can use
propertiesFile.getMessage("SERVER_IP");






Similar Threads
Thread Thread Starter Forum Replies Last Post
RunSql action rashi Access 1 September 28th, 2007 01:24 PM
Request action on change and get no action. Help crussell Ajax 0 September 12th, 2007 11:11 AM
Two action in a form johnjohn Classic ASP Components 1 November 16th, 2004 05:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.