• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reusing a font in a JSP

 
Thomas Hawk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what style sheets are for. Define it in a style sheet and use it in any JSP.
 
Thomas Hawk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are new to me as well. Thanks for the reply.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a thing in the world to do with JSP, so this has been moved to the HTML forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic