myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Gruber-Riemer <r...@vanosten.net>
Subject Re: Fwd: RELATIVE path problem
Date Thu, 01 Sep 2005 11:43:41 GMT
Hej

Do you use something like this?

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<c:set var="ctx" value="${pageContext.request.contextPath}" />

		<link rel="stylesheet" media="screen" type="text/css" 
href="${ctx}/styles/forms.css" />
		<link rel="shortcut icon" href="${ctx}/images/favicon.ico" />

Works for me ... Rick

> Hi,
> I noticed that when I want to have a path like localhost/foo/bar.jsf the
> default template brokes with no emage and stylesheet. This is for the
> relative paths used in template and included pages. I wonder are there any
> affort work around to correct this?
>
> --
> from debian manifesto:
> Debian Linux is a brand-new kind of Linux distribution.
> Rather than being developed by one isolated individual or group, as other
> distributions of Linux have been developed in the
> past, Debian is being developed openly in the spirit of Linux and GNU.

Mime
View raw message