My requirement is that I need to write logs which should be according to locale in java files. I know I can use message files in JSP using taglib. But how I can achive it in java files
The org.apache.struts.Action class that your Action class extends has a getLocale() method. If you call this method to get the locale, you can then format your log files differently based on the locale.