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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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

Reusing a font in a JSP

Thomas Hawk

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.?

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.

So much trouble in the world -- Bob Marley
Thomas Hawk

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

Joined: Jan 10, 2002
Posts: 62101

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]
wood burning stoves
subject: Reusing a font in a JSP