This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Can I use JavaScript inside a JSP page? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Can I use JavaScript inside a JSP page?" Watch "Can I use JavaScript inside a JSP page?" New topic
Author

Can I use JavaScript inside a JSP page?

nan sh
Ranch Hand

Joined: Jan 05, 2001
Posts: 167
I couldn't find any official documentation to say I can do that.
nan sh
Ranch Hand

Joined: Jan 05, 2001
Posts: 167
Sorry Mika, my question actually is that if a page is written by jsp( means page name has .jsp as suffix and gota JSP code inside), can I insert any JavaScript inside this page too?
As JSP don't support onMove() or more, so I have to use JavaScript. Am I allow to do that?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12268
    
    1
A JSP writes HTML output to a browser as a response to a request. Anything you can put in a static HTML page can be written by a JSP. You may have to be careful about escaping characters, etc. but it can be done.
I get the feeling that you are a little mixed up about where things happen - Javascript executes on the browser, JSP executes on the server.
Bill


Java Resources at www.wbrogden.com
nan sh
Ranch Hand

Joined: Jan 05, 2001
Posts: 167
Thanks Bill and your books.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can I use JavaScript inside a JSP page?
 
Similar Threads
Testing
Brain Teasers
May 31, 2001 - test Job Offer $xxx,xxx Colorado Springs
No Banner for JSF book promo?
Idle's mind is a devils workshop