Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ext JS: how to populate grid with values from servlet

 
Vi Mani
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Vi Mani
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks in advance
Vmani
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is really no one here that uses Dojo, have you tried asking it on their community? http://dojotoolkit.org/community/

 
Vi Mani
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your help.I have posted this in that community .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic