File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Taglib to attach CSS-File? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Taglib to attach CSS-File?" Watch "Taglib to attach CSS-File?" New topic

Taglib to attach CSS-File?

Meyer Florian
Ranch Hand

Joined: Oct 20, 2003
Posts: 62
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

Joined: Mar 08, 2004
Posts: 57
No, but there is a preferred way to write this using the html:rewrite tag:
<LINK rel="stylesheet"
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Taglib to attach CSS-File?
Similar Threads
Resizing table
layout and multibrowser hell
how to find width of fields from a file
Adding a css template to java mail when overwrite the JTable data into .txt file