File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How can i change Struts Message Resource File Font... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How can i change Struts Message Resource File Font..." Watch "How can i change Struts Message Resource File Font..." New topic
Author

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

Rahul Nair
Ranch Hand

Joined: Dec 01, 2007
Posts: 138
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: 30123
    
150

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i change Struts Message Resource File Font...
 
Similar Threads
how to change the font-family in XSLT file
Displayin error messages in struts 2
how to change font size on unix?
JeditorPane Font
Setting custom font JOptionPane