Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i change Struts Message Resource File Font...

 
Rahul Nair
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to display all the errors from the Message Resources file in Vardana Font ...

So any one can tell me how can, i change font instead of writing on
<font.. /> on key Value ???
[ December 15, 2007: Message edited by: Rahul Nair ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul,
You could use a stylesheet to set the font you want to use.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Struts 1 there are standard messages that you can use to apply fonts and other formatting to the <html:errors /> tag. Example:

errors.header=<UL>
errors.prefix=<LI>
errors.suffix=</LI>
errors.footer=</UL>

The errors.header and errors.fotter content apply to the entire block of messages, whild the errors.prefix and errors.suffix content apply to each individual error message. You could easily apply a CSS style using these standard messages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic