This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp and javascript" Watch "jsp and javascript" New topic
Author

jsp and javascript

Jherald Lacambra
Ranch Hand

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


jherald
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

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.
 
jQuery in Action, 2nd edition
 
subject: jsp and javascript
 
Similar Threads
Selectbox in Javascript
Change drop down box to text field
Need Ideas for This Puzzle
Form in New window
JavaScript in JSP