Tuesday, May 13, 2014

EL expression to get the url upto Context Root in ADF?

Sometimes we might need the URL till the Context Root in ADF. The following is the expression
${pageContext.request.contextPath}

Example Usage:

<div class="displayLogo" style="display: none">
   <img src="${pageContext.request.contextPath}/img/logo.png"/>
</div>

3 comments:

  1. hello

    i was following your tutorial

    img src="${pageContext.request.contextPath}/images/afrika_selatan.jpg"

    but it still can't. any idea why?

    ReplyDelete