JQGrid with JSP

JQGrid with JSP

Hi,

I want to provide the XML data to my JQgrid using a JSP, the way it is done using php in some examples. Can anyone please tell me, if it is possible and how to do it. I have been unable to find any help from the documentation available on net.

Basically, this is what I am looking for, instead of example.php in url property

{ url:'example.php', datatype: 'xml', mtype: 'GET', colNames:['Inv No','Date', 'Amount','Tax','Total','Notes'], ............. caption: 'My first grid' }

can I provide the path to a JSP file which will return me the XML or XML string to display in the grid?

Thanks,
CJ