Frames are to be avoided whenever, wherever possible, and I always manage without them. However, if you want the output of a form to be pointed to a different frame or window, you can use the following HTML. The basic thing to note is that you set the Target property of the HTML form.
<FRAME SRC="leftindex.html" NAME="Left frame" >
<FRAME SRC="rightindex.html" NAME="Right frame">
Below is the source of leftindex.html
<FORM NAME="Myform" METHOD=GET
ACTION="http://www.kiranpai.com/servlet1" target = "Right frame">
<INPUT TYPE=SUBMIT VALUE="Clicking in left frame but Output in Right frame">