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("地址");//地址
%>
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("地址");//地址
%>
或者 forward 什么的 但是比jsp中麻烦一点, 而且这种操作(从结构设计)我觉得并没有必要放在bean中
<jsp:forward page="指向的页面"/>