Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL of request.getContextPath( )

 
Ola Daniel
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys I'm trying to get rid of all scriptlets from my JSP codes and I have accomplished that so far but I dont know the EL equvalent of this: <%=request.getContextPath( )%>,


Could any one please tell me the EL version of this scriptlet?

THanks
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The implicit variables are different for EL than regular JSP. To do this in EL, you would do something like ${pageContext.request.contextPath}.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!