Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JavaScript support for Spring dynamic languages [SPR-7592] #12248

Closed
spring-issuemaster opened this issue Sep 24, 2010 · 5 comments

Comments

@spring-issuemaster
Copy link
Collaborator

commented Sep 24, 2010

Tomasz Nurkiewicz opened SPR-7592 and commented

Spring currently supports Groovy, JRuby and BeanShell dynamic languages. I would like to suggest adding support for JavaScript. Because Rhino engine is embedded in Java 6 JRE, no additional libraries are needed since that version.

I have already implemented (GitHub) rough version of this feature (including several unit tests) and explained it here.


Affects: 3.0.4

Issue Links:

  • #16871 Support JavaScript Templating
  • #9888 ScriptFactory for JSR-223 ("is superseded by")

8 votes, 9 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented May 11, 2011

Darren Cruse commented

I think this is a great idea - Server Side Javascript has been getting a lot of attention (e.g. V8 and node.js) and Rhino is really a mature implementation we're lucky to have it on the JVM.

In fact I was a little surprised/disappointed Groovy's Dynamic Language Support didn't already support Javascript - after all if you define "popularity" in terms of numbers of developers who know it, Javascript is in fact more popular than the other dynamic languages already supported.

I did download Tomasz rough version, and it appears that he's made his changes right within/alongside the current spring code base, I assume to make incorporation in the official Spring code base as easy as possible.

So I vote for this and I hope others do as well!! :)

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Dec 18, 2011

Tomasz Nurkiewicz commented

Any updates on this issue? Few people contacted me and asked about this feature.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Dec 19, 2013

James Cook commented

With the enormous number of REST services spitting out JSON these days and JavaScript built right into the JVM, it seems silly to constantly be marshaling JSON back and forth through Java objects. RingoJS is awesome in that it lets me work with JSON as God intended while running on the JVM thus giving me access to Spring abstractions, but I would like more seamless integration with Spring. How about adding Rhino and Nashorn support to Spring's list of dynamic languages. Better yet, make a huge splash and support CommonJS package loading and NPM libraries in the same runtime.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 9, 2015

Sébastien Deleuze commented

Since Nashorn Javascript engine use JSR-233 ScriptEngine, Invocable and Compilable types, maybe this issue should be closed in favor of #9888.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Apr 1, 2015

Juergen Hoeller commented

Superseded by #9888.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.