Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to call javascript from jsp  RSS feed

 
Raphael Okochu
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
Please I need to call javascript from within my JSP without using


Rather I want it to be triggered by some other variable like a response from a bean method in a scriptlet



Thanks in Advance

Raphael
 
Tuna Töre
Ranch Hand
Posts: 220
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets look at this one;
http://www.coderanch.com/t/122052/HTML-JavaScript/calling-javascript-JSP

Tuna TÖRE
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fact that you are even asking this question reveals a fundamental misunderstanding of what JSP is and how it works.

Please read this article to learn why this is impossible.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also,
Raphael Okochu wrote:

No modern JSP should contain scriptlets or Java code. Time to stop writing JSP as if it were 2001.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!