aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Reusing a font in a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reusing a font in a JSP" Watch "Reusing a font in a JSP" New topic
Author

Reusing a font in a JSP

Thomas Hawk
Greenhorn

Joined: Oct 01, 2004
Posts: 9
I am new to both JSPs and Struts and I have a really basic question about reusing a font in my JSP.

I have a JSP for a login page and it includes the following snippet:


Later on in the page I have the following snippet:


Is there a way to define a font styles "constant" in one place and reuse that "constant" throughout my JSP rather then duplicate the font style.?


TH
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
That's what style sheets are for. Define it in a style sheet and use it in any JSP.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Thomas Hawk
Greenhorn

Joined: Oct 01, 2004
Posts: 9
Those are new to me as well. Thanks for the reply.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Not a thing in the world to do with JSP, so this has been moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reusing a font in a JSP