把构造好的ShowMessage实例放入session中,,在你需要显示提示信息的frame中取出就可以了。

解决方案 »

  1.   

    servlet里面用out.print(里面是javascript代码,以使信息显示在指定的frame内);
      

  2.   

    adijava(阿迪) 
    显示信息的frame不能主动去取,因为他不知道什么时候有信息可以显示,
    只能用ShowMessage主动的去写。也许我没理解你的意思,还请多多指教!
      

  3.   

    public void show_message(String msg,HttpServletResponse response)throws HtptServletException,IOException{
        ServletOutputStream sos = response.getOutputStream();
        sos.write(msg.getBytes());
    }//你也可以将ServletOuptutStream 作为参数取代HttpServletResponse
      

  4.   

    在客户端使用javascript控制FRAME里的页面。top.themsgframe.location = "themsgpage.url";
      

  5.   

    SORRY!top.themsgframe.location.href = "themsgpageurl";