Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using javascripts in servlet?  RSS feed

 
S. Palanigounder
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to use javascripts in servlet?
I used javascript in jsp, but not servlet.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean executing Javascript code on the server side or writing Javascript code into an HTML page?
To execute Javascript on the server side, use IBM's Bean Scripting Framework.
To write Javascript into a page - just write it to the output stream.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!