"Peter Pilgrim" <[EMAIL PROTECTED]>
> How do I get a "*.css" file recognised as valid Java Server Page?
> --
> Peter Pilgrim | | ++44 (0)207-545-9923
> .... \ \ ___ / / ... .
> - ---- ( * ) --- --
> _____________________________Cafe_Savannah,_San Antonio,Ibiza__
You do not need that.
You can do something like this:
in your html.jsp:
<LINK REL="stylesheet"
TYPE="text/css"
HREF='<%= response.encodeURL("stylesheet.jsp") %>'>
and stylesheet.jsp would produce the generated stylesheet, something
like this:
stylesheet.jsp:
<% response.setContentType("text/css"); %>
h1 {
<% if (likeItRed) { %>
color: red;
<% } else { %>
color: blue;
<% } %>
}
(better use the <logic:*> tags)
--
gR