File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Javascript Code in JSP

vikram ahuja
Greenhorn

Joined: Dec 28, 2000
Posts: 6
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

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


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript Code in JSP