I'm going crazy with this case. The environment is Jboss-as-7.1.1 under CentOS Linux release 7.0.1406.
This is the code (just the piece to expose my case):
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link rel="stylesheet" type="text/css" href="<c:url value="/assets/css/styles.css" />" />
<link rel="stylesheet" type="text/css" href="<c:url value="/assets/css/checkbox.css"/>" />
<c:set var="urlImgLoadingGIF"><c:url value="/img/ajax-loader.gif"/></c:set>
<c:set var="urlImgLoadingGIF2"><c:url value="/assets/css/checkbox.css"/></c:set>
<script type="text/javascript">
var urlImgLoadingGIF = "${urlImgLoadingGIF}";
var urlImgLoadingGIF2 = "${urlImgLoadingGIF2}";
</script>
And this is the output:
<link rel="stylesheet" type="text/css" href="/assets/css/styles.css;jsessionid=AQvp3fDjrDIOArTZebuDllp1.undefined">
<link rel="stylesheet" type="text/css" href="/assets/css/checkbox.css;jsessionid=AQvp3fDjrDIOArTZebuDllp1.undefined">
<script type="text/javascript">
var urlImgLoadingGIF = "/seuapb/img/ajax-loader.gif;jsessionid=AQvp3fDjrDIOArTZebuDllp1.undefined";
var urlImgLoadingGIF2 = "/seuapb/assets/css/checkbox.css;jsessionid=AQvp3fDjrDIOArTZebuDllp1.undefined";
</script>
Why in the css link, the c:url tag do not renders the context (/seuapb/) and one line after it does?
I have tomcat in development environment, and this dont happens, the behavior of c:url tag is consistent in all the document.
Thank you in advance.