Friday, June 3, 2011

Getting context path in jsp

Some times while developing plugin portlets/hooking into existing liferay files we may need to get context path in jsps, either to make ajax calls/to navigate to different jsp in same or different folder. Here is how you will get context path in jsps

<%= request.getContextPath()%>

Comments are most welcome, if any body wants to dicuss more on this topic

No comments:

Post a Comment