OK this is a bit hard to explain without getting completely lost, but here goes...
1. I have a
JSP with an iFrame in it. The JSP (search.jsp) is used to create search criteria, which are posted to a
Servlet which is 'target' to the iFrame which loads a new JSP (results.jsp). So you end up with one page (search.jsp) with the search criteria and below an iFrame with the results in it.
2. If you click on one of the results it takes you OUT of the iFrame to another JSP (details.jsp) which as the name suggests has details on that result.
3. Now... I need to be able to click on a [return to results] link which takes me back the to search.jsp with the results.jsp within the iFrame (still with me).
I can't use the easy javascript:history.go(-1); option so I need to execute the Servlet which does the initial search again.
I have all this working, but..... When I click on the [return to results] button, I can't get the results to return within the iFrame, they appear in a full JSP (missing the search.jsp top).
How do I get the Servlet to know it needs to load search.jsp with results.jsp within the iFrame?
See told you it was impossible to explain, wothout getting completely lost! :-)
[ August 30, 2006: Message edited by: Bear Bibeault ]