在顶部定义java变量:
<%
String url = request.getContextPath()+"/Page";
%>
在body里的标签中调用该变量
<cusTag:CustomTag allCount="135" currentPageIndex="3" id="pageTag"
actionPath="<%=url%>" pageNumber="20" height="30" width="600"></cusTag:CustomTag>
转载于:https://blog.51cto.com/tianjian/1665964