I am trying to preform some basic operations with jQuery and JSON. Presently having difficulty with jQuery accepting JSON response from my play framework application. Below is a simplified version of the code that still produces the error.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label playframework. Show all posts
Showing posts with label playframework. Show all posts
Thursday, May 3, 2012
jQuery JSON response always triggers a ParseError
Sunday, March 11, 2012
Why does java wait so long to run the garbage collector?
I am building a Java web app, using the Play! Framework . I'm hosting it on playapps.net . I have been puzzling for a while over the provided graphs of memory consumption. Here is a sample:
Friday, February 24, 2012
Render images by java code or read images from a static path?
Here's my code:
1.Java Code:
public static void getImg(Long itemId) {
try {
Item item = Item.findById(itemId);
if (item.img != null && item.img.getFile() != null{
response.setContentTypeIfNotSet(item.img.type());
renderBinary(item.img.get());
}
} catch (Exception e) {
Logger.error("Can't find image,itemId = " + itemId);
}
}
html : < img src="@{{ Items.getImage(123)}}"/>
Subscribe to:
Posts (Atom)