File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 63838

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Reusing a font in a JSP
It's not a secret anymore!