index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>框架页面</title>  
</head>
 
<FRAMESET cols=" *,130">
 <FRAME name=main src="find.jsp" frameBorder=0 noResize scrolling=yes>
 <FRAME name=menu src="result.jsp" frameBorder=0 noResize>
</FRAMESET>
 
<noframes>
</noframes>
 
</html>
find.jsp
 <form name="form1" method="post" >
        <p><span>数据:</span>
          <input type="text" name="data" class="text" id="text1"/>
        </p>
        <p>
     <input   type="submit" value="提交" onclick="javascript:show();" /> 
        </p>
       <input type="button" name="bto" value="test" onclick="javascript:location.href='find.jsp?action=select'">
  </form>
  <%
  String action=request.getParameter("action");
  if("action".trim().equals(action))
  {
  session.setAttribute("message","123456789");
  }
  %>result.jsp
<%
 Matter m=new Matter((String)session.getAttribute("message"));
 m.test();
%>public class Matter {
public Matter()
{

}
public Matter(String me)
{
this.setMessage(me);
}
private String message; public String getMessage() {
return message;
} public void setMessage(String message) {
this.message = message;
}
     
public static void test()
{
Matter m=new Matter();
String str =""+ m.getMessage();
 
System.out.println("test:"+str);
}
}大概的意思就是index.jsp框架里面的find.jsp页面,需要传递参数给result.jsp页面,传值给Matter。需要获取参数却不能刷新result.jsp页面。