Why the "refresh" button works like that?

Hi, I set up a index.jsp, which includes two frames one is top.html for the picture and one is the main.jsp for log-in.

In the main.jsp:

<FORM METHOD=post action ="confirm.jsp" >

<input type=TEXT name=newName size = 20>

<input type=password name=newpass >

...

After the user put user name and passwd, the main.jsp will goto confirm.jsp and show some data. Now I find though it go to the confirm.jsp but in the browser address, it still shows that it is index.jsp and if I put the refresh button, it will come back to index.jsp. I need put the username and passwd again.

I think it may related to the frame I set up in the index.jsp but I am not sure. Thanks.

Below is the index.jsp code:

<html>

<frameset rows="35,*" frameborder="NO" border="0" framespacing="0">

<frame name="topFrame" scrolling="NO" resize src="top.html" marginheight="1" marginwidth="1" >

<frame name="mainFrame" src="main.jsp" frameborder="YES">

</frameset>

<noframes>

<body bgcolor="#FFFFFF" text="#000000">

</body>

</noframes>

</html>

[1235 byte] By [aidshiv98] at [2007-9-26 1:20:53]
«« J2EXE
»» Databases
# 1
Hi,It's actually normal the url in the browser stays the same. It's only the frame itself which is redirected. If you want to redirect the whole page, you've got to add target="_top" to your <FORM> tag.Hope this helps,Kurt.
leukbr at 2007-6-29 0:55:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...