Hello Java Gurus,
I am working on a simple web project and need help with a problem.
The index.jsp has 2 iframe components, where the src attribute for each iframe references to a separate jsp page (so the src for iframe1 is iframe1.jsp and for iframe2, its iframe2.jsp)
Now, the iframe2.jsp has a search text and a submit button. On entering a search text, the control goes to a servlet, which then runs some logic and sends an object to be displayed in iframe1.
In the servlet, I have used RequestDispatcher to forward the response to iframe1. Now, the problem here is that the response is getting populated in iframe2.jsp itself (from where the initial request originated). I need to response to go to iframe1.jsp
Have verified all the links and paths in the code, so there isnít any typo anywhere. Just wondering what might be wrong here. Is RequestDispatcher not the right way to send control to another jsp? If yes, what is the other alternative?