Question

I have a scenario as below. I have three jsp pages jsp1, jsp2, jsp3. jsp1 calls jsp2 and jsp2 calls jsp3.

I am sending a http request from jsp1 to jsp2. I would like to add some more values to the parameters in the request object and forward that to the jsp3. Can you please let me know how to do that?

Was it helpful?

Solution

Instead of parameters, you can add request attributes using request.setAttribute(attributeName, attributeValue)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top