相关代码 |
|
try { String type1=(String)session.getValue("type"); int t=Integer.parseInt(type1); int test; test=((t/4)%2); if (test!=1) out.print("alert('你没有这个权限!');location.href='main.jsp'"); } catch(Exception e) { response.sendRedirect("Login.jsp"); } if(up.update()) out.print("alert('修改成功!');location.href='Finput.jsp'"); else out.print("alert('修改失败!');location.href='Finput.jsp'"); %>