It's not a secret anymore!
The moose likes JSP and the fly likes jsp and javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp and javascript" Watch "jsp and javascript" New topic

jsp and javascript

Jherald Lacambra
Ranch Hand

Joined: Feb 02, 2005
Posts: 129
how can i call a function from javascript to jsp page?

Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1082

do you want to call a method of JSP from JavaScript code ?

Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Eugene Lucash
Ranch Hand

Joined: Feb 19, 2005
Posts: 77
Jsp is server side. JavaScript is client side.
JavaScript appears in jsp as ordinary html markup or the template text,
and nothing more.
Jsp cannot call javascript, it can only write fucntions or calls
to response output so browser will execute it.
I agree. Here's the link:
subject: jsp and javascript
It's not a secret anymore!