Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Call javascript function from JSP

843835Feb 8 2002 — edited Jul 22 2007
Hi -

All I want to do is call a javascript function from within a JSP without having any buttons or hrefs - Basically I am using the JSP to take a message string from a servlet and put it in an alert box.

I have the function ready to go in javascript but no idea on how to call it except from a button.

Anyone know how to do this?

Thanks!
Beth
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2007
Added on Feb 8 2002
4 comments
516 views