• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript Code in JSP

 
vikram ahuja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using Jhtml pages on server side which is returning a JSP page . JSP page contains Scritlets . i want to add a javascript code in between the java code .
ie
<%
java code
if ()
{
I WANT TO ADD JAVASCRIPT CODE HERE a confirmation dialog
java code
}
else
{
}
%>
please let me know how to go about that
thanks
Vikram
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can always break in the middle of the Java:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic