With ever increasing amounts of Javascript on the client side, maintenance is increased by duplicating business logic on the client side;
“In this series, learn how to run JavaScript files on the server side, call remote JavaScript functions with Ajax, and use the Java Scripting API with the JavaServer Pages (JSP) technology.”
Part 1 of IBM’s “Javascript EE” series-
“Combine[s] JavaScript with Java code on the server to get the freedom to use the same JavaScript routines on both servers and clients, […] and allow[s] you to maintain a single code base for both Ajax and non-Ajax clients.”
Now this is interesting and 0 comments? Anyway, I like the idea – in fact it would be even more cool if it was possible to run Javascript on server side with Rails – it would allow me to have one codebase in my apps.
Didn’t we have server side JavaScript back in the 90s…granted this is mixing Java with JavaScript?!