I have a function say :
public void display(ActionRequest areq, ActionResponse ares) throws Exception,PortletException,IOException {
String name= areq.getParameter("name");
String add= areq.getParameter("add");
String phone= areq.getParameter("phone");
}
I have a jsp say disp.jsp which passes the user input to the above function display. Now I after doing some processing on the above data in display() function, I want to display the results on a jsp page say new.jsp. How should I go ahead with it? I tried something like:
areq.setAttribute("name",name);
areq.getRequestDispatcher("new.jsp").forward(areq, aresp); but it shows an error that getRequestDispatcher is not defined for actionrequest and actionresponse.
I am using liferay framework