This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
one submit button two action
check this out!!
Populating dropdowns without submitting form
help!!
help needed| Generating struts tag using java script