From my main JSP that has a form and form elements, I call action.jsp that does some validations and pass the data to java classes.
action.jsp does not have any <form> or body. But has the return data from my java classes.
I would like to forward the user to thanks.jsp and also display the return data from action.jsp.
How can I pass these parameters to thanks.jsp?
1. I tried to pass as hidden, but since there is no <form>, it does not work.
2. response.redirect did not seem to pass the parameters
3. One suggestion on EE was
RequestDispatcher reqDisp = request.getRequestDispatcher("/thanks.jsp");
<%@ page errorPage="Exception.jsp" %>
But it does not work either....
When I execute it, the control always goes to exception.jsp and there is no log entires. Can you tell me what could be the error?
Also, how can I see the actual error mesage when I use <%@ page errorPage tag?