File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[VERY URGENT]Logging in Struts

 
Anirban dutta
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
Can anyone please tell me that how can I generate locale-specific messages using commons-logging API in struts. Please help me. It's very urgent.
Thanks
 
Adam Hardy
Ranch Hand
Posts: 567
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you want to make locale-specific? the language, the dates, the times? If you want to use different languages, you'll need to use the utils.MessageResources class and put your logging strings in property files.
Just a caveat - it might make difficulties when you get an error on the property files - you won't be able to log anything.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic