| Author |
How can i change Struts Message Resource File Font...
|
Rahul Nair
Ranch Hand
Joined: Dec 01, 2007
Posts: 136
|
|
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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
Rahul, You could use a stylesheet to set the font you want to use.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
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.
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: How can i change Struts Message Resource File Font...
|
|
|