I tried using TokenInterceptor but it doesnt stop the form from multiple submissions when the user does a browser refresh by clicking on F5. Also, I want the user to stay on the same page but the form should not be submitted multiple times on browser refresh.
I tried using Post Redirect Get but I am not able to figure out why the page is not rendered properly. Please let me know if there is something i did incorrect over here.
My original code was
<action name="update-test" class="testAction" method="test">
<result name="success">/test/xyz/test-result.jsp</result>
</action>
<action name="update-test" class="testAction" method="test">
<result name="success" type="redirectAction">forward-test</result>
</action>
<action name="forward-test" class="testAction" method="forward">
<result name="success">/test/xyz/test-result.jsp</result>
</action>
Apr 26, 2014 4:12:02 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for
servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.portal.tiles.tickets.tests_002test_002dresult_002dv1_jsp._jspService(tests_002dtest_002dresult_002dv1_jsp.java:196)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
When I did a view source on Line 196, I see the below. Please help.
<div id="tabXYZ" class="panel">
<img src="/images/arrow_mainmenu.jpg" width="25" height="31" alt="" class="floatingleft">