http://topic.csdn.net/u/20100316/15/419a559d-9766-46d2-bc33-0ae85e2ff31f.html?32976

解决方案 »

  1.   

    两种方式:
    1、在弹出窗口通过window.dialogArguments.tableObj 获取上一个页面的表格对象,然后对单元格赋值
    2、在弹出窗口的save()方法里写上window.returnValue = 要保存的值(可以是字符串、数组、Object等),然后在上一个页面获取showModalDialog()的返回值,将返回值设置到相应的单元格中
      

  2.   

    url传值,或者 form 表单传值
      

  3.   

    url传值:<a href="index.html?method=list">登录</a> 在index.html接受用
    String list=request.getParameter("method");
    form表单传值:<form action="Servlet?method=list" method="post"></form>
    在Servlet中接受这个值String list=request.getParameter("method");