I need to get a variable from a combobox and print in same page.Is it possible.If yes,please guide me to do this.
The following is the code to select ratio from combobox
so far as my knowledge goes it can be achieved in 3 ways
1. Submit to the same servlet
2. If submitted to another servlet, the second servlet forwards the request back to the servlet which generates the form
3. If submitted to another servlet, the second servlet displays the output and includes the first servlet, so from user point of view it will appear on the same page.
Thanks for you reply.But my actual problem is ,if i submit the form two frames will be opened ,In one frame the main page displays with a combo box to choose a network and stop button.another frame will show which network I have selected and submitted.If i select a network from the combo box and click stop button ,I am unable to close the second frame.Thats why i tried to use stop as link instead of a button and call a javascript function which forwards the whole frames to the page we required.But using stop as link(ie)
By using this i can able to close the two frames and open the new page.But i am unable to get the variables which is selected in the combo box.
Thats why i thought if i am able to print the variable selected in the combox in the samepage ,i will put that in session and get that in session when clicking stop.
If it is a wrong method,please give me a suggestion to do this.
//the following code snippet might provide you some help, just a html page, as per your requirement you need to embed inside servlet, but for presentation logic its always better to use jsp