要求调用后返回当前页面的顶部,谢谢了

解决方案 »

  1.   

    这个?
    main.jsp
    <%@ page language="java" contentType="text/html; charset=utf-8"
        pageEncoding="utf-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>主菜单</title>
    </head>
    <frameSet rows="30%,*">
    <frame src="top.jsp" noresize="noresize" name="top">
    <frameSet cols="30%,*">
    <frame src="left.jsp" noresize="noresize" name="left">
    <frame src="right.jsp" noresize="noresize" name="right">
    </frameSet>
    </frameSet>
    </html>top.jsp:
    <title>主菜单</title>
    </head>
    <body>这是上面的
    </body>
    </html>left  jsp   :
    </head>
    <body>
    <input name="file" id="file" type="file" class="ddddd" title="选择"/>
    <a href="test.jsp" target="top">返回顶部</a>
    </body>
    </html>right.jsp:
    <title>主菜单</title>
    </head>
    <body>
    <a href="test.jsp" target="bottom">这是右边的</a>
    </body>