I have a pretty simple web application that I'm mocking up and I've run into something very peculiar.
The user comes to a certain page in which they can search the system for files. The page consists of two frames - the frame on the left contains controls for the user to enter their search criteria and a button to press to initiate the search. The frame on the right is empty, initially, but I'd like to populate it with the results of the search.
To this end, I've made my "control" (the frame on the left) page like this:
It's really pretty basic. The user can enter their search criteria and pressing the "Search" button causes the method submitForm() to be invoked. This method really only does two things. First, it pops up an alert to let me know it got there. Second, it changes the location of the other frame - redirecting it to a
servlet so that it gets the result of the search.
I know that this method is only being invoked one time because I only get one pop-up box.
However, in the servlet that is called, I have a println statement so that I can be sure it got there - this statement executes two times.
Anyone have any idea why the doGet method is bring invoked twice when I set the location as I have above?
Thanks,
Corey