Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in jsp run script

 
narayana arya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi here i am unable to get alert message in my jsp file.

could you explain me why this alert msg is not executing.
(it is not giving any err)

4ex the code is like:
<%
...
pst.executeUpdate();
out.print("<script>alert('Record Updated Successfully');</script>");
pst.close();
....
%>

could anybody suggest me how should i get alert msg after updating a rec.
 
Jason James Picardo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have tried the code that you have listed and it worked on my PC running on JRun 4 server. I guess there is some error in the previous line.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic