This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Taglib to attach CSS-File?

 
Meyer Florian
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there!
Is there a Struts Taglib to attach an external CSS-File?
In HTML, I can do: <link href="global.css">
thanks for help!
Florian Meyer
 
brad balmer
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, but there is a preferred way to write this using the html:rewrite tag:
<LINK rel="stylesheet"
type="text/css"
href="<html:rewrite page='/theme/Master.css'/>">
Therefore you don't have to hardcode your application name and this tag will be guaranteed to work on ALL pages no matter where they are located.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic