| 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
|
|
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.
|
 |
 |
|
|
subject: Can I use JavaScript inside a JSP page?
|
|
|