way 1:
  out.println("<script language=javascript>");
  out.println("window.alert('你输入的信息');");
  out.println("window.location.href='转向的地址'");
  out.println("</script>");
way 2:
import="import javax.swing.*" 
 JOptionPane.showMessageDialog(component,message,messagetitle,messagetype);//弹出警告框在页面内不能使用
  url.sendredirect("地址");//地址
  %>

解决方案 »

  1.   

    既然你的页面是jsp,为什么不在jsp上进行页面重定向呢??一点要在javabean中操作吗?可不可在javaben中定义response对象,来进行操作,我想应该可以象jsp标签类那样可以既然可以定义requets,javabean也应该可以吧,如果可以就可以在javabean中重定向jsp页面啦
      

  2.   

    javabean 中可以用 response.sendRedirect
    或者 forward 什么的 但是比jsp中麻烦一点, 而且这种操作(从结构设计)我觉得并没有必要放在bean中
      

  3.   

    也可以使用JSP动作
    <jsp:forward page="指向的页面"/>