I am new to liferay and ended up failing to send data from one jsp to other. Below is my use case.
Any pointers on how to achieve this task would be appreciated?
Thanks.
I was able to send the data by creating a renderURL in javascript code as show below. Posting it so that it might help someone like me out there :)
In first.jsp:-
<script>
AUI().ready('liferay-portlet-url', function(A) {
var renderURL = Liferay.PortletURL.createRenderURL();
renderURL.setParameter("jspPage","/html/testsample/testsamplepage.jsp");
renderURL.setPortletId("testsamplepage_WAR_testsamplepageportlet");
renderURL.setParameter("rowData",data);
window.location.href = renderURL;
</script>
Then in second.jsp:-
<%
System.out.println(request.getParameter("rowData"));
%>