• Post Reply Bookmark Topic Watch Topic
  • New Topic

Javascript and JSP'S  RSS feed

 
harrell collins
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain to me how Javascript is used together with JSP's. Would it be inside scriplets or called from JSP's predefined variables?
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript is a client side scripting. You still have to use JavaScript under script tags which can be defined anywhere in your JSP, but not inside scriptlets, as scriptlets are compiled as Java code and would give you a compiler error if you use JavaScript.
 
Clifford Adams
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only thing javascript has in common with java is the first 4 letters of their names.

You use javascript in jsps exactly the same way you use javascript in html.

you might want to check out the javascript tutorial at w3schools
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66262
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this article.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!