aspose file tools
The moose likes JSP and the fly likes Javascript and JSP'S Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Javascript and JSP Watch "Javascript and JSP New topic
Author

Javascript and JSP'S

harrell collins
Greenhorn

Joined: Mar 08, 2006
Posts: 22
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

Joined: Jul 26, 2005
Posts: 336
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

Joined: May 12, 2004
Posts: 50
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

Joined: Jan 10, 2002
Posts: 56529
    
  14

Please read this article.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript and JSP'S
 
Similar Threads
Servlets & JSP:A Tutorial
how to call javascript function of another jsp from one jsp
HttpUnit Help..
javascript Input Element from database with suggestion
Javascript function call