This content has been marked as final. Show 1 reply
Is it a custom jsp or seeded jsp?
you can go back to previous page programmatically, only if previous page reference is passed thru request object
if it is seeded jsp, you will need to check if calling jsp is passing the name of page to destination page through request object.
if it is custom jsp, introduce code like below on all the source/calling JSPs.
<input type=hidden name="fromRef" value="<%=IBEUtil.htmlEncode("<name of page>")%>">
and on processing page, write code to forward to fromRef.
e.g. <jsp:forward page="<%=request.getParameter("fromRef")%>"/>