Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp and javascript  RSS feed

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i call a function from javascript to jsp page?
 
Ranch Hand
Posts: 1084
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you want to call a method of JSP from JavaScript code ?
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!