新手提问,JSP如何提示
在BEAN中执行了SQL,如何提示添加/保存成功
并转向另一页??
------解决方案--------------------PrintWriter out=response.getWriter();
out.println( " <script> alert( 'ok ');window.location= 'a.jsp ' </script> ");
out.flush();
out.close();
------解决方案--------------------这两个不是可以了吗
request.setCharacterEncoding( "GBK ");
response.setCharacterEncoding( "GBK ");