jQuery JSON response always triggers a ParseError

Maybe I’m misunderstanding, but couldn’t you set the dataType to text and JSON.parse() the returned data? success: function(data) { data = JSON.parse(data); // process data }, Edited to add generally agreed upon solution (previously a comment only): I just took a look at api.jquery.com/jQuery.ajax and it looks like with jQuery 1.5 you can do a … Read more

What is Play framework web server

The internal server is Netty. Unless you are forced to deploy a Play application in a servlet container, don’t do it. Play performs better on Netty as it doesn’t need to jump through hoops to support the servlet standard, which shaves off quite a bit of overhead. My preferred way of deploying Play is attached … Read more

Play’s execution contexts vs scala global

They are very different. In Play 2.3.x and prior, play.core.Execution.Implicits.internalContext is a ForkJoinPool with fixed constraints on size, used internally by Play. You should never use it for your application code. From the docs: Play Internal Thread Pool – This is used internally by Play. No application code should ever be executed by a thread … Read more

Frameworks comparation: Lift, Play and Wicket

Play: Lightweight Java-based framework, with Scala support available as an extra. very good for rapid prototyping, fast-feedback-loop kind of work. Embeds the compiler, so you just edit source code in place and pages get immediately updated. Learning curve is shallow. Wicket: Stateful Java-based framework, with Scala support available as an extra. Shallower learning curve into … Read more