File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reusing a font in a JSP

 
Thomas Hawk
Greenhorn
Posts: 9
  • 0
  • 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: 1510
  • 0
  • 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
  • 0
  • 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: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic