my first page in my project is a jsp page which selects a network and clicking start button,a dialing process will happen through a servlet which forwards to a jsp page in one frame which selects a network and a stop button and another frame displays which network is selected.if i stop the button in the first frame,the selected network should be stopped and the two frames should be closed and open the jsp page which is used to start the network.
The following code stops the network selected and closes the two frames.But it oens the jsp page which stops the network.
How should i forward the page or redirect the page to the start page.
what i exactly need is on clicking the stop button,the selected network should be stopped and the two frames should be closed and the main page should be displayed again.
From StopServlet instead of using forward action, use sendRedirect to the main page that might solve the problem, provided you dont have any scoped attribute values set.