wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Ext JS: how to populate grid with values from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ext JS: how to populate grid with values from servlet" Watch "Ext JS: how to populate grid with values from servlet" New topic
Author

Ext JS: how to populate grid with values from servlet

Vi Mani
Greenhorn

Joined: Feb 10, 2011
Posts: 13
Hi,
I am new to EXT js .In my project i need to add a grid which pulls data from the database.I have done a grid and created Json data but the json data is not getting displayed.Pasted the code for refrence.Please help.

TreeServlet
This creates the json data for the grid.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61180
    
  66

It's good that you used code tags, but they are not very useful if you do not properly indent your code. It's unreadable as is.

Have you checked that the response is correct?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vi Mani
Greenhorn

Joined: Feb 10, 2011
Posts: 13
Hi,


This is the response.

{"total":"20","data":[{"id":"1","email":"email","first":"first","last":"last"},{"id":"2","email":"god@ymail.com","first":"god","last":"god"},{"id":"3","email":"god@gmail.com","first":"god1","last":"god1"}]}


Thanks In Advance,
Vmani
Vi Mani
Greenhorn

Joined: Feb 10, 2011
Posts: 13
Hi,

I am getting loadException.What could be cause of this exception?Please help...

Thanks in advance
Vmani
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
There is really no one here that uses Dojo, have you tried asking it on their community? http://dojotoolkit.org/community/

Vi Mani
Greenhorn

Joined: Feb 10, 2011
Posts: 13
thanks for your help.I have posted this in that community .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ext JS: how to populate grid with values from servlet