I am setting the context path in jsp page but it is showing error while running the jsp page.
as shown below.
<c:set var="path" value="${pageContext.request.contextPath}"/>
<% urlName='<c:out value="${path}"/>/tran/handleTransactionResults.do'; %>
${path} is not showing the context path.
You cannot use JSP tags within a scriptlet. Do it like this:
Or even easier:
If you simply want to output your path, you can use the
<%= %>shortcut: