A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
How can i change Struts Message Resource File Font...
Joined: Dec 01, 2007
Dec 15, 2007 01:55:00
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 ]
author & internet detective
Joined: May 26, 2003
Dec 15, 2007 09:35:00
You could use a stylesheet to set the font you want to use.
OCA 8 book
How To Ask Questions The Smart Way
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Feb 15, 2005
Dec 16, 2007 10:37:00
1 there are standard messages that you can use to apply fonts and other formatting to the <html:errors /> tag. Example:
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How can i change Struts Message Resource File Font...
Displayin error messages in struts 2
Setting custom font JOptionPane
how to change the font-family in XSLT file
how to change font size on unix?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015