• Post Reply Bookmark Topic Watch Topic
  • New Topic

Server Side JavaScript in .jsp

 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a book (Beginning JavaScript by Paul Wilton) which has a chapter on server side JavaScript, but it uses (pardon my language, but it is necessary for the discussion) .asp pages (hope I didn't offend anybody). Does .jsp also support server side JavaScript, or does it depend on the server?

Thanks.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the server, but I am not sure why would would need to use server side JavaScript since JSP should be able to do the same thing.

Eric
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the "Bean Scripting Framework" http://jakarta.apache.org/bsf/ - a system supporting scripting languages within Java - they specifically mention JSP. According to that page, BSF supports:
Javascript (using Rhino ECMAScript, from the Mozilla project)
Python (using either Jython or JPython)
Tcl (using Jacl)
NetRexx (an extension of the IBM REXX scripting language in Java)
XSLT Stylesheets (as a component of Apache XML project's Xalan and Xerces)

Bill
 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More of a curiosity then a "I want to do this". As I said, I saw in a book that you can use it with .asp. I have no experience with .asp, so either it (server side Javascript) supplements .asp, or the author just thought it was neat.

I just tried some experimenting with it using Weblogic, and it didn't seem to work.

Thanks for the quick reply.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!