-
4 Mar 2010 2:05 AM #1
Can I mention a jsp file instead of php to get JSON formatted data for grid
Can I mention a jsp file instead of php to get JSON formatted data for grid
Is it possible to have jsp file instead of php to get JSON formatted data to populate a grid.
instead ofCode:var store = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: 'http://localhost:11533/JSONSample/index.jsp' })
Its not working though when I am running the web application http://localhost:11533/JSONSample/index.jsp ,I can view the JSON formatted data.Code:var store = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: 'http://localhost:11533/extjs-2.2-src/examples/grid/data.php' })
Please find attached the screen shot of web app and grid output.
Thanks....
-
4 Mar 2010 2:33 AM #2
You will use a servlet.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
4 Mar 2010 2:43 AM #3
Its not working,I am not getting where am I failing.In server reponse I am getting the database rows and mentioned the JSON formatted content to the jsp file
-
4 Mar 2010 3:27 AM #4
JSPs output HTML.
Use a servlet.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
4 Mar 2010 4:13 AM #5
using servlet its working....
Thanks a lot for your guidence....
-
5 Mar 2010 8:08 AM #6
Trying to build a use case
Trying to build a use case
Hi
Could you please share your experience. I am trying to build a Grid with data coming from JSP.
Could you please let me know how to start with.
As of now my project has a Java class which connects to the database and brings data. My JSP calls this Java class and displays the result in an HTML table. I want the same Data to display in an EXT Grid.
please help me out.
Thank you
Krishna
-
7 Mar 2010 10:18 AM #7
Sorry for the delay Krishna
Please find the attachment.
Its having a readme.txt please follow it.
Please feel free to ask if you have any queries.
-
8 Mar 2010 8:10 AM #8
Thank you for the reply
Thank you for the reply
Hi
Thank you for the Reply. I am unable to find any attachment. If possible do send me a mail to krishna_tgkk@yahoo.com
Thank you
Regards
Krishna
-
8 Mar 2010 9:32 PM #9
I will try my best to send you the attachment asap.
sorry for the delay.
-
5 May 2010 4:38 AM #10


Reply With Quote