留言板

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

thumbnail
Karthik Kumar,修改在7 年前。

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

New Member 帖子: 6 加入日期: 14-5-21 最近的帖子
"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