> I am having property file under WEB-INF directory. I am 
> currently storing something like
  
> title.mainmenu = Main Menu
> error.validation = Validation Error
> ....
  
> Can i make use of these variables inside my any normal java 
> classes - or whether these r meant for only JSPs ?

You can use them in your Java classes.

If your property file is named "myapp.properties", then something like this:

        ResourceBundle res = ResourceBundle.getBundle("myapp");
         
        String menuTitle = res.getString("title.mainmenu");
 

--
Tim Slattery
[EMAIL PROTECTED]


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

Reply via email to