Forwarding the request from one jsp to another jsp with all request parameters?
java, jsp, web-applications
Solution
There are two ways to implement that:
- output all parameters in hidden fields, and submit them in the 2nd request
- store everything in the session
Problem
i have this scenario. User enter some stuff on jsp form in browser and submit. In servlet i process the request and show the jsp page1 to client which has just continue button. Now on click of continue, i want to forward this request to another jsp page2 with all request parameter present on page1. basically i want to get all request parameters which were present in first request on page 2 also? I am not getting how should i go for this? I dont think i can use jsp forward as per my understanding it would work only when both when we want to forward from jsp (on server side) not on client side?