tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <>
Subject Re: JSP processing other than .jsp?
Date Wed, 16 Nov 2005 18:18:50 GMT
Yaakov Chaikin wrote:

> 2) If you need to place JSP code in just one or two .css files, I
> would not start messing with server specific configurations and just
> rename those .css files to have extension of .jsp. So, now you will
> have a stylesheet file with .jsp. It seems weird and unusual, but
> really doesn't make any difference as far as your HTML/JSP page is
> concerned. Just point the link to the .jsp page instead in your
> HTML/JSP page:
> <link href="styles/myStyle.jsp" rel="stylesheet" type="text/css">

Make sure your style sheet is delivered as the proper content-type,
though, or Moz-based browsers will ignore it; start the page with

  <%@ page contentType="text/css" %>
  < contentType="text/css"/>

Hassan Schroeder -----------------------------
Webtuitive Design ===  (+1) 408-938-0567   ===

                          dream.  code.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message