Home Jsf Richfaces Creating a properties file



Creating a properties file
Posted on: June 24, 2008 at 12:00 AM
This file is used for the purpose of storing some key and value pairs for the application.

Creating a Properties File

    

This file is used for the purpose of storing some key and value pairs for the application. Its key are used in the application and those are replaced with the value of the key. The other benefit of using this file is that we can change the value of the key if required which will change the message accordingly without changing any code in the application. Our login and registration application uses the properties file named "LRAppResourceBundle".

LRAppResourceBundle.properties


errorFirstName=Only [a-z][A-Z] characters allowed
errorFirstNameLength=Last Name must be of 1-25 characters
errorLastName=Only [a-z][A-Z] characters allowed
errorLastNameLength=Last Name must be of 1-25 characters< br> errorUserNameBlank=User Name cannot be blank
errorUserNameLength=User Name must be of 6-20 characters
errorUserName=Only (.) special symbol is allowed
errorValidUserName=User is already registered
errorPasswordLength=Password must be of 6-20 characters
errorPassword= Only alphanemeric characters allowed
errorConfirmPasswordLength=Password must be of 6-20 characters
errorConfirmPasswordValid= Only alphanemeric characters allowed
errorConfirmPassword=Please enter confirm password correct
errorEmail=Invalid Email Address
errorValidEmail=Email is already registered
errorAddressBlank=Address cannot be blank
errorCountryBlank=Country cannot be blank
errorStateBlank=State cannot be blank
errorContactNumberBlank=Contact Number cannot be blank
errorPasswordConfirm=Please enter confirm password correct
errorEmailMsg=Email Address cannot be blank

Related Tags for Creating a properties file:
cfileuipropertiesapplicationairloginioreplacesedgiskeyvaluesourcenamechangeusingresourcethismessagelogairegistrationappbundleifforiewithtorequireposeilitreplcanlihangusepecehanginginpairresourcebundlemouttrsageoscaosacechangingesfitwithoutagercnamedmeproppcatstoringtortiewhichsssasoginessatanyratiokisirhallproperprepairsepleplgistandarcodcodeccstrrtropesavausesssriringrdthstatiapaluhaticaicaplpropprndodeonomo


More Tutorials from this section

Ask Questions?    Discuss: Creating a properties file  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.