
if(pass.equals(pwd)) { Statement st1=conn.createStatement(); st.executeUpdate("update password set Password='"+npwd+"' where Ename='"+ename+"'"); out.println("password is successfully changed"); %> <% st1.close(); conn.close(); } else { out.println("please enter old Password"); %>
<script>
alert("please enter old Password");
<% } }catch(Exception e){ out.print(e); e.printStackTrace(); }
%> this code is possible to run in jsp? bcz its doesn't shown alert message?, please give me a code how to write alert box in jsp?
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.