tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <has...@webtuitive.com>
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" %>
or
  <jsp:directive.page contentType="text/css"/>

-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message