I tried something like this:
<%
int startIndex = 3;
%>
<portlet:renderURL var="nextURL">
<portlet:param name="jspPage" value="/html/portlet/ext/ctestportlet/view.jsp?st= <%=startIndex%>" />
</portlet:renderURL>
<a href="<%=nextURL%>">Next</a>
And I am retrieving like this:
<%
String startIndexString = request.getParameter("st"); // get the index pages
%>
I am always getting the "" (empty string) for 'startIndexString ' value.
Please help. What is wrong here?
You can try this code snippet
<%
int startIndex = 3;
%>
<portlet:renderURL var="nextURL">
<portlet:param name="jspPage" value="/html/demo/view.jsp" />
<portlet:param name="st" value="<%=String.valueOf(startIndex) %>"/>
</portlet:renderURL>
HTH
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.