File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Javascript Code in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Javascript Code in JSP" Watch "Javascript Code in JSP" New topic

Javascript Code in JSP

vikram ahuja

Joined: Dec 28, 2000
Posts: 6
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 .
java code
if ()
I WANT TO ADD JAVASCRIPT CODE HERE a confirmation dialog
java code
please let me know how to go about that
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
You can always break in the middle of the Java:

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Javascript Code in JSP
It's not a secret anymore!