Foros de discusión

"Back" button functionality to go back -1 screen as jsp

thumbnail
Karthik Kumar, modificado hace 7 años.

"Back" button functionality to go back -1 screen as jsp

New Member Mensajes: 6 Fecha de incorporación: 21/05/14 Mensajes recientes
"Back" button functionality to go back -1 screen as jsp with out losing the data
As I am using Liferay 7 EE,

1. I have used onclick="history.go(-1)" functionality to go back using button and even tried with getURLCurrent() and all stuff but didn't work.

<aui:button type="button" value="Back" onclick="history.go(-1)" id="back_btn" />

Once subimitting the form using POST Method then back is not going back to expected.

But , here once we submit the form and page refreshes , then we click on "Back " button then it going temporarily unavailable.
Error:

User 77502 is not allowed to access URL http://localhost:8080/web/guest/rma and portlet com_rockwellcollins_rma_portlet_RMAPortletControllerPortlet
09:33:25,604 ERROR [http-nio-8080-exec-2][PortletRequestDispatcherImpl:261] org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.JasperException: java.lang.NullPointerException